MCPcopy Index your code
hub / github.com/python/cpython / _LiteralGenericAlias

Class _LiteralGenericAlias

Lib/typing.py:1756–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1754
1755
1756class _LiteralGenericAlias(_GenericAlias, _root=True):
1757 def __eq__(self, other):
1758 if not isinstance(other, _LiteralGenericAlias):
1759 return NotImplemented
1760
1761 return set(_value_and_type_iter(self.__args__)) == set(_value_and_type_iter(other.__args__))
1762
1763 def __hash__(self):
1764 return hash(frozenset(_value_and_type_iter(self.__args__)))
1765
1766
1767class _ConcatenateGenericAlias(_GenericAlias, _root=True):

Callers 1

LiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…