-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add reportMissingParameterType to pyrightconfig.stricter.json
#8770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reportMissingParameterType to pyrightconfig.stricter.json
#8770
Conversation
This comment has been minimized.
This comment has been minimized.
replace_paths=..., | ||
implies=..., | ||
graph: Incomplete | None = ..., | ||
user_hook_dirs: Iterable[StrOrBytesPath] = ..., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bytes paths don't work: PyInstaller.depend.analysis.PyiModuleGraph("x", [b"y"])
throws a TypeError.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeError: Can't mix strings and bytes in path components
This is probably the case in other parts of the stubs as well 😓 I'll go back through other StrOrBytesPath
and make a PR to fix them when they're explicitly used with strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
graph: Incomplete | None = ..., | ||
user_hook_dirs: Iterable[StrOrBytesPath] = ..., | ||
excludes: Iterable[str] = ..., | ||
path: Iterable[str] | None = ..., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These and further args are keyword-only, since they're forwarded through **kwargs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know keyword-only arguments were a thing. Thanks!
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks!
Your other PR introduced a few conflicts, I hope I got the merge right.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
This was noticed in #8702 (comment)
Completes the types in keyboard and PyInstaller (which I've both added recently) so that this option can be turned on.