-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Added type hinting to resource.py, resolves #938 - Type hinting to functions in resource.py - Added return type to inVirtualEnv() in __init__.py - Added None checks to some function bodies * Fix issues in type hinting PR - Specify functions that return `Any` to return more specific types - Import certain modules unconditionally - Removed all `:rtype` comments - `FileResource`, functions return binary streams and open files in binary mode - `ModuleDescriptor` open calls unchanged - `ModuleDescriptor` specifies member types - `__file__` checks for `None`, `forModule()` and `_runningOnWorker()` * Add type hinting to resource.py, #938 Same as pull #4463 * Remove redundant byte type check * Fix checks - moved `__file__` check into try block so `AttributeError` can be caught * change mypy type checked files * Update issues/938-type-resource from main repo to personal * Fix check here too --------- Co-authored-by: Adam Novak <[email protected]>
- Loading branch information
Showing
3 changed files
with
63 additions
and
49 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
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