DetachHead / basedpyright

pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server
https://docs.basedpyright.com
Other
948 stars 17 forks source link

treat `TYPE_CHECKING` blocks the same as stub files #615

Open KotlinIsland opened 2 weeks ago

KotlinIsland commented 2 weeks ago
from typing import TYPE_CHECKING

if TYPE_CHECKING:
    def f(a: int) -> int:  # whinge whinge, a isn't used
DetachHead commented 2 weeks ago

it should treat TYPE_CHECKING blocks the same as stub files

DetachHead commented 2 weeks ago

upstream issues: