| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This type never existed at runtime, and was replaced by `types.EllipsisType`.
Part of #8240 Unblocks python/typeshed#15712 The actual change is one line in checkexpr and the other changes are for tests, mostly mechanical. I used the try except trick used for `types.ModuleType` in the name lookup so that tests that don't import the `types` module don't crash with `KeyError` when they use `...` (which is used in almost all tests as empty function body). Most test changes are caused by modules now correctly resolving to module type instead of `object` because some fixtures started importing `types`. The changes are mine, I only used a coding agent to fix the `fine-grained-modules.test` and `testexportjson.py` tests and the missing visitor method.
|
@srittau we have python/mypy#21911 now. Hopefully it will be included in the next mypy release and this PR will be unblocked. |
Sorry, something went wrong.
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM!
Sorry, something went wrong.
|
In pulling this update into ty, our test suite made us aware of the fact that Pydantic 2.13 still uses builtins.ellipsis, so this change results in significantly degraded type-checking for users of Pydantic 2.13. This is fixed in Pydantic 2.14. Maybe this is acceptable, just flagging it since it doesn't seem to have been discussed here. |
Sorry, something went wrong.
* Update typeshed to 7030b265d887eeacee07e47aa2cca412b07950c4 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b5fccb8-2031-4188-bdc6-cf3405acbc3f * Adapt ellipsis samples to upstream pseudo-type removal Classification A/C: typeshed commit 0d9b1926fc75ea33c643171b83cea73e3dd9990c (python/typeshed#15712) removes builtins.ellipsis, which never existed at runtime. Use types.EllipsisType to retain exact narrowing expectations, update the builtins symbol list, and remove the obsolete pseudo-type runtime-check case. No reveal expectations are weakened. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b5fccb8-2031-4188-bdc6-cf3405acbc3f --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b5fccb8-2031-4188-bdc6-cf3405acbc3f
| Back | FazBrowse Home | New Git URL |
This type never existed at runtime, and was replaced by types.EllipsisType.
Part of #7580.