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

make it a required dependency or something

feature

```py t: Truthy = None # error: `None` can't be `True` f: Falsey = 1 # error: `1` can't be `False` ``` maybe also a `helpful-bool` which only accepts types...

feature

like `keyof` in ts: ```py def f[T](t: T, a: AttributeOf[T]): f(1, "real") # ok f(1, "fake") # error ```

feature

- disable based denotations - ban type inference on external apis? that sounds like a different issue entirely @jorenham any suggestions?

not-based

```py a: Ellipsis = Ellipsis ``` this should be valid because `Ellipsis` is a single inhabitant type

p-3

```py from __future__ import annotations from typing import Callable AnyCallable = Callable[..., object] # type: ignore[no-any-explicit] def wrap[TCallable: AnyCallable, **P, R](fn: TCallable & Callable[P, R]): ... def f() -> int:...

topic-intersection

```py a: "list[int] | None" ``` ```py > mypy test.py --tb --python-version 3.8 test.py:1:4: error: "list" is not subscriptable, use "typing.List" instead [misc] a: "list[int] | None" ^ Found 1...