basedmypy
basedmypy copied to clipboard
Support `NotRequired` on classes
To make an iterable that doesn't support str:
class WorkProperlyIterable(Iterable[out_T], Protocol):
__contains__: NotRequired["(object) -> bool"]
And introduce a:
type Banned = NotRequired[Never]
in basedtyping