FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Replace `Incomplete | None = None` in third party stubs by srittau · Pull Request #14063 · python/typeshed · GitHub

Repository navigation

Replace Incomplete | None = None in third party stubs - #14063

Merged
srittau merged 13 commits into
python:mainfrom
srittau:incomplete-none-default
May 15, 2025
Merged

srittau merged 13 commits into
python:mainfrom
srittau:incomplete-none-default

Conversation

srittau commented May 14, 2025

Copy link
Copy Markdown
Collaborator

Partly addresses #14029

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

srittau commented May 14, 2025 •
edited
Loading

Copy link
Copy Markdown
Collaborator Author

This has a remarkably low primer fallout. Publisher.get_settings() has now (correctly) become untyped, which is fine in my opinion. It wasn't really typed previously, either.

srittau marked this pull request as ready for review May 14, 2025 15:05

This comment was marked as outdated.

srittau commented May 15, 2025

Copy link
Copy Markdown
Collaborator Author

So gevent is back to being complete.

Could you send a separate PR? (It doesn't need to but can include the Incomplete | None = None changes here.) I'll merge it first and then update this PR.

This comment has been minimized.

srittau commented May 15, 2025

Copy link
Copy Markdown
Collaborator Author

#14073 for the (unrelated) reportlab stubtest failure.

Avasam left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Comment thread pyrightconfig.stricter.json Outdated
Comment thread pyrightconfig.stricter.json Outdated

This comment has been minimized.

srittau and others added 2 commits May 15, 2025 20:31

Copy link
Copy Markdown
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]

srittau commented May 15, 2025

Copy link
Copy Markdown
Collaborator Author

CI failure seems unrelated.

srittau merged commit 1267684 into python:main May 15, 2025
srittau deleted the incomplete-none-default branch May 15, 2025 19:37
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL