| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Diff from mypy_primer, showing the effect of this PR on open source code: prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/server/orchestration/rules.py:102: error: Incompatible types in assignment (expression has type "ellipsis", variable has type "Session | AsyncSession | None") [assignment]
+ src/prefect/server/orchestration/rules.py:102: error: Incompatible types in assignment (expression has type "EllipsisType", variable has type "Session | AsyncSession | None") [assignment]
- src/prefect/server/orchestration/rules.py:103: error: Incompatible types in assignment (expression has type "ellipsis", variable has type "State[Any] | None") [assignment]
+ src/prefect/server/orchestration/rules.py:103: error: Incompatible types in assignment (expression has type "EllipsisType", variable has type "State[Any] | None") [assignment]
- src/prefect/server/orchestration/rules.py:104: error: Incompatible types in assignment (expression has type "ellipsis", variable has type "State[Any] | None") [assignment]
+ src/prefect/server/orchestration/rules.py:104: error: Incompatible types in assignment (expression has type "EllipsisType", variable has type "State[Any] | None") [assignment]
|
Sorry, something went wrong.
|
|
||
| # Backwards compatibility hack for folks who relied on the ellipsis type | ||
| # existing in typeshed in Python 3.9 and earlier. | ||
| ellipsis = EllipsisType |
There was a problem hiding this comment.
I'd favor removing this at some point, but not sure what the fallout would be.
Sorry, something went wrong.
There was a problem hiding this comment.
Ah I had a better comment that it looks I forgot to commit. Yeah, agreed. One point in time to remove it is when we drop 3.9 support
Sorry, something went wrong.
There was a problem hiding this comment.
For reference, I've added this as a to do item to #13782.
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks, this is an improvement.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.