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

mypy 2.0 big change list #17967

Open
hauntsaninja opened this issue Oct 16, 2024 · 2 comments
Open

mypy 2.0 big change list #17967

hauntsaninja opened this issue Oct 16, 2024 · 2 comments
Labels
meta Issues tracking a broad area of work

Comments

@hauntsaninja
Copy link
Collaborator

hauntsaninja commented Oct 16, 2024

This is a reminder list for relatively easy changes we may want to do in a major version.

  • Local partial types
  • PEP 688 change bytearray memoryview promotion by default
  • Remove logic for legacy bundled stubs
  • SQLite cache
  • Delete the Python 2 extra from setup.py

Needs more discussion:

  • Get rid of --no-namespace-packages
  • Interpret type as type[Any]?
  • Move func-returns-value to disabled by default error code?

For general not-so-easy changes we want to do, see #16472 (major/minor isn't the most meaningful for a lot of the most important changes we want to do, e.g. --new-type-inference was in 1.7)

See also https://github.com/python/mypy/wiki/Release-Process#policy-for-backward-incompatible-changes

(feel free to edit)

@hauntsaninja hauntsaninja added the meta Issues tracking a broad area of work label Oct 16, 2024
@brianschubert
Copy link
Collaborator

@JukkaL
Copy link
Collaborator

JukkaL commented Nov 5, 2024

I'd also like to add narrowing on initial assignment (#2008). We'd need to first add a feature flag to opt-in to the new behavior before 2.0.

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

No branches or pull requests

3 participants