Home
last modified time | relevance | path

Searched refs:variadic_type (Results 1 – 1 of 1) sorted by relevance

/external/pytorch/torch/fx/experimental/unification/multipledispatch/
Dvariadic.py9 other_type = (subclass.variadic_type if isvariadic(subclass)
12 … issubclass(other, cls.variadic_type) for other in other_type # type: ignore[attr-defined]
28 set(cls.variadic_type) == set(other.variadic_type)) # type: ignore[attr-defined]
31 return hash((type(cls), frozenset(cls.variadic_type))) # type: ignore[attr-defined]
60 def __getitem__(cls, variadic_type): argument
61 if not (isinstance(variadic_type, (type, tuple)) or type(variadic_type)):
65 if not isinstance(variadic_type, tuple):
66 variadic_type = variadic_type,
70 dict(variadic_type=variadic_type, __slots__=())