ramonhagenaars / nptyping

💡 Type hints for Numpy and Pandas
MIT License
571 stars 29 forks source link

Compatibility issue with pylance #104

Open KosukeMizuno opened 1 year ago

KosukeMizuno commented 1 year ago

Hi, thanks for useful package! I report a compatibility issue with pylance (ver: 2023.3.40). When I set python > Analysis: Type Checking mode == basic of vscode's setting, pylance reports "Illegal type annotation: variable not allowed unless it is a type alias" for the basis usage of nptyping. Is there a way to supress or avoid this warning?

image

The screenshot was taken on vscode-jupyter but this also happens without jupyter.

RamShiraziAB commented 9 months ago

same