Use of Protocol requires Python 3.7 or newer error from typing_extensions #2343
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Environment data
Expected behaviour
This would have no errors. This worked in Pylance version 2022.1.5 (released 1 wk ago)
Actual behaviour
Error: "Use of
Protocol
requires Python 3.7 or newer"This seems to have broken in Pylance version 2022.2.0 (released 3 days ago). I would expect to get this error if I import from
typing
, buttyping_extensions
implements this for older versions of Python and Pylance was able to distinguish these until this latest release.The text was updated successfully, but these errors were encountered: