Skip to content

Remove types-typing-extensions dependency #10347

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

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

hauntsaninja
Copy link
Collaborator

This is due to python/typeshed#5233

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

porcupine (https://github.com/Akuli/porcupine.git)
+ porcupine/settings.py:388: error: Unsupported operand types for < ("str" and "int")  [operator]

Copy link
Member

@JelleZijlstra JelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but curious what's going on with the mypy-primer change. It's on https://github.com/Akuli/porcupine/blob/master/porcupine/settings.py#L388, cc @Akuli.

@hauntsaninja
Copy link
Collaborator Author

hauntsaninja commented Apr 21, 2021

It's because porcupine uses a custom typeshed dir, which has been updated for modular typeshed but hasn't been updated to include typing_extensions in the stdlib. I assume this prevents mypy from matching the Literal overloads.

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.

2 participants