Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Fix hint extraction in Python 2 - #1074

Merged
Mikhail Arkhipov (MikhailArkhipov) merged 1 commit into
microsoft:masterfrom
MikhailArkhipov:pephint
May 14, 2019
Merged

Mikhail Arkhipov (MikhailArkhipov) merged 1 commit into
microsoft:masterfrom
MikhailArkhipov:pephint

Conversation

@MikhailArkhipov

Copy link
Copy Markdown

Fixes #1073

Internally expression is extracted and parsed as annotation but since parser was created off the current configuration, in case of 2.7 it was unable to parse type annotations. The fix is to always parse hints as 3.x.

@MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov) merged commit 269a8d5 into microsoft:master May 14, 2019
Jake Bailey (jakebailey) pushed a commit to jakebailey/python-language-server that referenced this pull request Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PEP hint does not work in Python 2.7

2 participants