-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pyright] [core] _core/definitions/scoped_resources_builder (#11698)
### Summary & Motivation Eliminates some type errors on access to the `Resource` class. AFAICT, the `Resource` class is not constructed anywhere other than in `ScopedResourceBuilder`, where there are dynamically generated subclasses of it. All of these subclasses have an identical `__getattr__` method-- so moving this into `Resource` provides equivalent functionality, while also solving type errors from accessing attributes on `Resource` objects. ### How I Tested These Changes BK
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters