-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[py]: document
mypy
config; add additional types and types dependen…
…cies
- Loading branch information
Showing
5 changed files
with
38 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,36 @@ | ||
[mypy] | ||
files = selenium | ||
ignore_missing_imports = False | ||
; warn about per-module sections in the config file that do not match any files processed. | ||
warn_unused_configs = True | ||
; disallows subclassing of typing.Any. | ||
disallow_subclassing_any = True | ||
; disallow usage of generic types that do not specify explicit type parameters. | ||
disallow_any_generics = True | ||
; disallow calling functions without type annotations from functions that have type annotations. | ||
disallow_untyped_calls = True | ||
; disallow defining functions without type annotations or with incomplete annotations. | ||
disallow_untyped_defs = True | ||
; disallow defining functions with incomplete type annotations. | ||
disallow_incomplete_defs = True | ||
; type-checks the interior of functions without type annotations. | ||
check_untyped_defs = True | ||
; reports an error whenever a function with type annotations is decorated with a decorator without annotations. | ||
disallow_untyped_decorators = True | ||
; changes the treatment of arguments with a default value of None by not implicitly making their type `typing.Optional`. | ||
no_implicit_optional = True | ||
; warns about casting an expression to it's inferred type. | ||
warn_redundant_casts = True | ||
; warns about unneeded `# type: ignore` comments. | ||
warn_unused_ignores = True | ||
; warns when returning a value with typing.Any from a function with a non typing.Any return type. | ||
warn_return_any = True | ||
; Shows a warning when encountering any code inferred to be unreachable after performing type analysis. | ||
warn_unreachable = True | ||
|
||
[mypy-trio_websocket] | ||
; suppress error messages about imports that cannot be resolved. | ||
ignore_missing_imports = True | ||
|
||
[mypy-_winreg] | ||
; suppress error messages about imports that cannot be resolved. | ||
ignore_missing_imports = True |
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
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