PyCQA / flake8-pyi

A plugin for Flake8 that provides specializations for type hinting stub files
MIT License
73 stars 23 forks source link

Y090 false positive for PEP-646 #472

Closed Daverball closed 7 months ago

Daverball commented 7 months ago

PEP-646 introduced 1-element (from a syntactical standpoint) tuples that are very much not likely to be an error, both tuple[*Ts] and tuple[Unpack[Ts]] should not result in a Y090 error, the suggestion it makes (tuple[Unpack[Ts], ...]) is also not a valid type.