OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:__args__
(Results
1 - 2
of
2
) sorted by null
/external/python/cpython3/Lib/
typing.py
183
new_args = list(tp.
__args__
)
184
for a, arg in enumerate(tp.
__args__
):
217
params.extend(p.
__args__
)
262
ev_args = tuple(_eval_type(a, globalns, localns) for a in t.
__args__
)
263
if ev_args == t.
__args__
:
571
# *
__args__
is a tuple of all arguments used in subscripting,
572
# e.g., Dict[T, int].
__args__
== (T, int).
610
self.
__args__
= tuple(... if a is _TypingEllipsis else
636
len(self.
__args__
) == 2 and self.
__args__
[0] is Ellipsis)
[
all
...]
/external/python/cpython3/Lib/test/
test_typing.py
179
self.assertEqual(Union[X, int].
__args__
, (X, int))
274
self.assertIn(Employee, u.
__args__
)
275
self.assertIn(Manager, u.
__args__
)
319
self.assertIn(str, Union[str, typing.Iterable[int]].
__args__
)
320
self.assertIn(typing.Iterable[int], Union[str, typing.Iterable[int]].
__args__
)
808
if tp.
__args__
:
809
KT, VT = tp.
__args__
833
return all(isinstance(x, tp.__orig_bases__[0].
__args__
[0])
849
self.assertEqual(C[int].
__args__
, (int,))
850
self.assertEqual(D[int].
__args__
, (int,)
[
all
...]
Completed in 796 milliseconds