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

Use a more precise return type for tokenize.untokenize() #13366

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

Conversation

tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Jan 5, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Jan 5, 2025

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

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/expr.py:171: error: Incompatible return value type (got "bytes | str", expected "str")  [return-value]

sympy (https://github.com/sympy/sympy)
+ sympy/parsing/sympy_parser.py:897: error: Incompatible return value type (got "bytes | str", expected "str")  [return-value]

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.

1 participant