PyCQA / flake8-pyi

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

Warn about redundant `Incomplete` annotations #471

Closed srittau closed 7 months ago

srittau commented 7 months ago

I.e. standalone Incomplete annotations in function arguments and return types:

def foo(x: Incomplete) -> Incomplete: ...
Avasam commented 7 months ago

+1 as these lend to a false sense of security in Pyright, which has the concept of Unknown (I don't remember if mypy has checks for calling untyped functions)