Skip to content
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

Python 3.13 tracking issue #17264

Open
6 of 8 tasks
Tracked by #3
hauntsaninja opened this issue May 18, 2024 · 6 comments
Open
6 of 8 tasks
Tracked by #3

Python 3.13 tracking issue #17264

hauntsaninja opened this issue May 18, 2024 · 6 comments
Labels
feature meta Issues tracking a broad area of work

Comments

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented May 18, 2024

See Python 3.12 tracking issue here: #15277

(feel free to edit this issue)

@hauntsaninja
Copy link
Collaborator Author

Thank you to @cdce8p for all your work towards making mypy/c work on 3.13!

sobolevn added a commit that referenced this issue Sep 30, 2024
Refs #17264

I will add docs in a separate PR.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@Sebcio03
Copy link

Anything I can help with?

@hauntsaninja
Copy link
Collaborator Author

Note for almost all use cases mypy 1.12 and newer will work great on Python 3.13

If you're interested in helping, one thing that isn't too hard is posting a summary in the PEP 696 and 702 issues of what remains to be done based on running mypy master against the conformance test suites in https://github.com/python/typing/tree/main/conformance

You could also take a look into what it would take to make mypy/mypyc work well with free threading. See mypyc/mypyc#1038. One thing here could be to look into moving mypyc to use multi-phase module init, this would also help with subinterpreters in Python 3.12 and newer

@tyralla
Copy link
Collaborator

tyralla commented Nov 19, 2024

I had a look at the PEP 702-related part of the conformance test suite and found that Mypy's master branch misses one E. I sneaked the quick fix into the related PR #18090.

There are still two or three E?s that may require attention, and #18085 needs still discussion, but I think/hope Mypy 1.14 will cover the most frequent/relevant cases.

@mvanderlee
Copy link

mvanderlee commented Nov 30, 2024

Python 3.13 added typing.NoDefault: https://docs.python.org/3/library/typing.html#typing.NoDefault

Using it causes error: Module "typing" has no attribute "NoDefault" [attr-defined]

Edit: Turns out I forgot to update the pre-commit version of mypy. 🤦‍♂️ Thank you @JelleZijlstra

mvanderlee added a commit to mvanderlee/marshmallow_dataclass that referenced this issue Nov 30, 2024
@JelleZijlstra
Copy link
Member

@mvanderlee typing.NoDefault is already present in mypy's bundled stubs (

NoDefault: _NoDefaultType
). I haven't tracked down when it was added, but it's likely that you're using an old version of mypy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature meta Issues tracking a broad area of work
Projects
None yet
Development

No branches or pull requests

6 participants