-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Overload bool.__new__ for Literal bools #10465
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
Is there a way to see the projects this affects using mypy-primer using my mypy branch? |
The easiest way would be to temporarily push a commit to your mypy PR that makes these edits to |
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Alex Waygood <[email protected]>
python/mypy#15687 (comment) changes don't appear to be causing any problems |
This comment has been minimized.
This comment has been minimized.
Diff from mypy_primer, showing the effect of this PR on open source code: prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/engine.py:2851: error: Unexpected keyword argument "task" for "create_call" [call-arg]
+ src/prefect/_internal/concurrency/api.py:41: note: "create_call" defined here
+ src/prefect/engine.py:2851: error: Unexpected keyword argument "task_run" for "create_call" [call-arg]
+ src/prefect/_internal/concurrency/api.py:41: note: "create_call" defined here
+ src/prefect/engine.py:2851: error: Unexpected keyword argument "state" for "create_call" [call-arg]
+ src/prefect/_internal/concurrency/api.py:41: note: "create_call" defined here
|
Still waiting for python/mypy#15687. |
Inspired by microsoft/pyright#5515
Closes #6069
Deferred because of: python/mypy#15687