Home
last modified time | relevance | path

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

/third_party/python/Lib/lib2to3/fixes/
Dfix_raise.py29 from ..fixer_util import Name, Call, Attr, ArgList, is_tuple
53 if is_tuple(exc):
54 while is_tuple(exc):
67 if is_tuple(val):
Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple
40 if is_tuple(val):
Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms
77 if is_tuple(N) or is_list(N):
/third_party/python/Lib/lib2to3/tests/
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/
DSkEnumerate.h20 template <typename> struct is_tuple : std::false_type {}; struct
21 template <typename... T> struct is_tuple<std::tuple<T...>> : std::true_type {};
25 if constexpr (is_tuple<Captured>::value) {
/third_party/python/Objects/
Dgenericaliasobject.c306 int is_tuple = PyTuple_Check(item); in _Py_subs_parameters() local
307 Py_ssize_t nitems = is_tuple ? PyTuple_GET_SIZE(item) : 1; in _Py_subs_parameters()
308 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _Py_subs_parameters()
/third_party/python/Lib/test/
Dtest_future.py163 self, annotation, expected=None, drop_parens=False, is_tuple=False, argument
167 expected = annotation if not is_tuple else annotation[1:-1]
/third_party/node/tools/inspector_protocol/jinja2/
Dparser.py614 is_tuple = False
622 is_tuple = True
627 if not is_tuple:
/third_party/skia/third_party/externals/jinja2/
Dparser.py638 is_tuple = False
646 is_tuple = True
651 if not is_tuple:
/third_party/node/deps/v8/third_party/jinja2/
Dparser.py638 is_tuple = False
646 is_tuple = True
651 if not is_tuple:
/third_party/jinja2/
Dparser.py714 is_tuple = False
723 is_tuple = True
728 if not is_tuple:
/third_party/python/Lib/lib2to3/
Dfixer_util.py158 def is_tuple(node): function