Skip to content

Commit

Permalink
Add readonly for Mapping.__contains__ parameter.
Browse files Browse the repository at this point in the history
Reviewed By: connernilsen

Differential Revision: D48155636

fbshipit-source-id: dbe44e363da316396ea4e57edbab57618c7ad050
  • Loading branch information
Pradeep Kumar Srinivasan authored and facebook-github-bot committed Aug 9, 2023
1 parent 6cb44ca commit 6526109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/typeshed/typeshed/stdlib/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ class Mapping(Collection[_KT], Generic[_KT, _VT_co]):
def items(self) -> ItemsView[_KT, _VT_co]: ...
def keys(self) -> KeysView[_KT]: ...
def values(self) -> ValuesView[_VT_co]: ...
def __contains__(self: ReadOnly[Self], __o: object) -> bool: ...
def __contains__(self: ReadOnly[Self], __o: ReadOnly[object]) -> bool: ...

class MutableMapping(Mapping[_KT, _VT], Generic[_KT, _VT]):
@abstractmethod
Expand Down

0 comments on commit 6526109

Please sign in to comment.