Home
last modified time | relevance | path

Searched refs:is_tuple (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Lib/lib2to3/fixes/
H A Dfix_raise.py29 from ..fixer_util import Name, Call, Attr, ArgList, is_tuple namespace
53 if is_tuple(exc):
54 while is_tuple(exc):
67 if is_tuple(val):
H A Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple namespace
40 if is_tuple(val):
H A Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms namespace
77 if is_tuple(N) or is_list(N):
/third_party/python/Lib/lib2to3/tests/
H A Dtest_util.py29 def is_tuple(self, string): member in Test_is_tuple
30 return fixer_util.is_tuple(parse(string, strip_levels=2))
33 self.assertTrue(self.is_tuple("(a, b)"))
34 self.assertTrue(self.is_tuple("(a, (b, c))"))
35 self.assertTrue(self.is_tuple("((a, (b, c)),)"))
36 self.assertTrue(self.is_tuple("(a,)"))
37 self.assertTrue(self.is_tuple("()"))
40 self.assertFalse(self.is_tuple("(a)"))
41 self.assertFalse(self.is_tuple("('foo') % (b, c)"))
/third_party/skia/src/core/
H A DSkEnumerate.h20 template <typename> struct is_tuple : std::false_type {}; struct in SkEnumerate
21 template <typename... T> struct is_tuple<std::tuple<T...>> : std::true_type {}; struct in SkEnumerate
25 if constexpr (is_tuple<Captured>::value) { in MakeResult()
/third_party/python/Objects/
H A Dgenericaliasobject.c371 int is_tuple = PyTuple_Check(item); in _unpack_args() local
372 Py_ssize_t nitems = is_tuple ? PyTuple_GET_SIZE(item) : 1; in _unpack_args()
373 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _unpack_args()
437 int is_tuple = PyTuple_Check(item); in _Py_subs_parameters() local
438 Py_ssize_t nitems = is_tuple ? PyTuple_GET_SIZE(item) : 1; in _Py_subs_parameters()
439 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _Py_subs_parameters()
/third_party/python/Lib/test/
H A Dtest_future.py163 self, annotation, expected=None, drop_parens=False, is_tuple=False,
167 expected = annotation if not is_tuple else annotation[1:-1]
/third_party/jinja2/
H A Dparser.py716 is_tuple = False
725 is_tuple = True
730 if not is_tuple:
/third_party/node/deps/v8/third_party/jinja2/
H A Dparser.py638 is_tuple = False
646 is_tuple = True
651 if not is_tuple:
/third_party/node/tools/inspector_protocol/jinja2/
H A Dparser.py614 is_tuple = False
622 is_tuple = True
627 if not is_tuple:
/third_party/skia/third_party/externals/jinja2/
H A Dparser.py638 is_tuple = False
646 is_tuple = True
651 if not is_tuple:
/third_party/python/Lib/lib2to3/
H A Dfixer_util.py158 def is_tuple(node): function

Completed in 11 milliseconds