Re:Don't Use Booleans
by hardwaresofton on Tuesday July 09, 2024 @05:24AM
(#40914044)
What's the best Python type checker these days?
Seems like there are at least 4: Mypy, Pytype, Pyright, and Pyre
basedpyright:
https://github.com/DetachHead/basedpyright
(assuming you can't/don't use MSFT's pylance)
def foo(bar: Literal["active", "inactive"])