-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Related to #276
This produced errors in pyright:
class Data(Protocol):
def keys(self): ...
def __getitem__(self, item): ...
def __contains__(self, item): ...
Was fixed in pr #278 to:
class Data(Protocol):
def keys(self) -> Any: ...
def __getitem__(self, *args, **kwargs) -> Any: ...
def __contains__(self, *args, **kwargs) -> bool: ...
But this produces warnings in pycharm so i recommend:
class Data(Protocol):
def keys(self) -> Any: ...
def __getitem__(self, __key, /) -> Any: ...
def __contains__(self, __x, /) -> bool: ...
Seems to be compatible with mypy, black, pyright and pycharm.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working