MCPcopy Index your code
hub / github.com/RustPython/RustPython / _LiteralGenericAlias

Class _LiteralGenericAlias

Lib/typing.py:1720–1728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1718
1719
1720class _LiteralGenericAlias(_GenericAlias, _root=True):
1721 def __eq__(self, other):
1722 if not isinstance(other, _LiteralGenericAlias):
1723 return NotImplemented
1724
1725 return set(_value_and_type_iter(self.__args__)) == set(_value_and_type_iter(other.__args__))
1726
1727 def __hash__(self):
1728 return hash(frozenset(_value_and_type_iter(self.__args__)))
1729
1730
1731class _ConcatenateGenericAlias(_GenericAlias, _root=True):

Callers 1

LiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected