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

Support mypy 1.11 #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Redoubts
Copy link
Member

@Redoubts Redoubts commented Sep 26, 2024

A couple changes force some fixes in the plugin,

python/mypy#17304 took out an arg from UninhabitedType, and
python/mypy#17311 introduced TypeVarIds

I ran the tests, but let me know if there's anything else I should consider. I understand that newer trio versions make this plugin obsolete, but my code isn't there yet.

fixes #95

Use TypeVarId for mypy 1.11
Don't use is_noreturn
@jakkdl
Copy link
Member

jakkdl commented Sep 27, 2024

out of curiosity, what is it that blocks you from bumping trio versions? If this is widespread maybe we might reluctantly keep this repo alive even after mypy adds the feature which makes it fully redundant on newer trio.

@Redoubts
Copy link
Member Author

Redoubts commented Oct 2, 2024

I took a second look, and the trio.MultiError deprecation isn't as hard as I thought it would be. I'm less invested in this change, tho someone else may still want it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

trio_typing 0.10.0 mypy plugin incompatible with mypy 1.11.2
2 participants