Skip to content

Use native parse_type_string() - #21965

Open
ilevkivskyi wants to merge 2 commits into
python:masterfrom
ilevkivskyi:use-parse-type
Open

Use native parse_type_string()#21965
ilevkivskyi wants to merge 2 commits into
python:masterfrom
ilevkivskyi:use-parse-type

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

Fixes #21515

I also fix one remainder from Python 2 age where we accepted bytes literals as forward references.
cc @JukkaL

@ilevkivskyi

Copy link
Copy Markdown
Member Author

Btw note I am not touching parse_type_comment() in stubgenc.py yet. That one is a bit trickier, and will be probably better handled later by people more familiar with stubgen.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

We need equivalent of parse_type_string() in native parser

1 participant