basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

Based Python static type checker with baseline, sane default settings and based typing features

Results 446 basedmypy issues
Sort by recently updated
recently updated
newest added

if/elif/match case Dunno how... maybe only `match`

feature

```py def f(f: type[T]) -> T: ... reveal_type( # int | str f(int | str) # error: This is a `TypeForm` not a type ) ```

p-1
feature

```py a: str b = str(a) # erm, that's redundant ```

feature

doesn't apply to `None` or `Never`

feature

```py a = reveal_type({ # Revealed type is "dict['C' | 'D', None]" "A": None, "B": None, "C": None, "D": None, }) reveal_type(a) # Revealed type is "dict[str, None]" ```

bug

```py class A: a: Final[int] b: TypeCheckOnly[str] class A2(A): a: Final[bool] class B[T: A]: c: T.a b: B[A2] reveal_type(b.c) # bool ```

feature
problem :trollface:

they are defined in `builtins`

topic-stubs