Closed DetachHead closed 4 days ago
Something like this?
BASEDMYPY: Literal[False] = False
If BASEDMYPY:
A = B & C
else:
A = object
> mypy --always-true BASEDMYPY
Yeah but it should be enabled by default
There is MYPY
, can we close this issue?
nah, because not only does it not work at all, it also won't allow for conditionally defining stuff depending on whether you're using basedmypy or mypy, like in my example
What about we introduce BASEDMYPY
, equivalent to MYPY
?
it would be nice to have a variable like
TYPE_CHECKING
that's only true in basedmypy, so we can conditionally support based features while still supporting regular type checkers:related: #37