Replace Incomplete | None = None in third party stubs#14063
Merged
srittau merged 13 commits intopython:mainfrom May 15, 2025
Merged
Replace Incomplete | None = None in third party stubs#14063srittau merged 13 commits intopython:mainfrom
Incomplete | None = None in third party stubs#14063srittau merged 13 commits intopython:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
This has a remarkably low primer fallout. |
Collaborator
Author
Could you send a separate PR? (It doesn't need to but can include the |
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
#14073 for the (unrelated) reportlab stubtest failure. |
Avasam
approved these changes
May 15, 2025
Collaborator
There was a problem hiding this comment.
Quick question/suggestion concerning pyrightconfig.stricter.json. Non-blocker and otherwise LGTM.
And I see it's already suggested in Flake8-PYI: PyCQA/flake8-pyi#509
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Avasam <samuel.06@hotmail.com>
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: sphinx (https://github.com/sphinx-doc/sphinx)
+ sphinx/io.py: note: In function "create_publisher":
+ sphinx/io.py:189:5: error: Call to untyped function "get_settings" in typed context [no-untyped-call]
+ sphinx/builders/html/__init__.py: note: In member "__init__" of class "StandaloneHTMLBuilder":
+ sphinx/builders/html/__init__.py:165:9: error: Call to untyped function "get_settings" in typed context [no-untyped-call]
|
Collaborator
Author
|
CI failure seems unrelated. |
mmingyu
pushed a commit
to mmingyu/typeshed
that referenced
this pull request
May 16, 2025
vnmabus
added a commit
to vnmabus/typeshed
that referenced
this pull request
May 20, 2025
After python#14063, calls to `psutil.process_iter` and `psutil.Process.as_dict` are being reported by Pyright, as the `ad_value` parameter is untyped. However, given that (from the documentation) this is just a placeholder value to use when an error is raised while fetching some attribute, I think that typing it as `object` is appropriate.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partly addresses #14029