Home
last modified time | relevance | path

Searched refs:cls (Results 326 - 350 of 748) sorted by relevance

1...<<11121314151617181920>>...30

/third_party/python/Lib/test/
H A Dtest_dataclasses.py307 for cls in [C0, C1]:
308 with self.subTest(cls=cls):
309 self.assertEqual(cls(), cls())
316 f"not supported between instances of '{cls.__name__}' and '{cls.__name__}'"):
317 fn(cls(), cls())
335 for cls i
[all...]
H A Dtest_functools.py483 cls = functools.partialmethod(classmethod(capture), d=9) variable in TestPartialMethod.A
533 self.assertIs(obj.cls.__self__, self.A)
534 self.assertIs(self.A.cls.__self__, self.A)
552 self.assertEqual(obj.cls(), ((self.A,), {'d': 9}))
553 self.assertEqual(obj.cls(5), ((self.A, 5), {'d': 9}))
554 self.assertEqual(obj.cls(c=8), ((self.A,), {'c': 8, 'd': 9}))
555 self.assertEqual(obj.cls(5, c=8), ((self.A, 5), {'c': 8, 'd': 9}))
588 for func in [self.A.static, self.A.cls, self.A.over_partial, self.A.nested, self.A.both]:
1239 def __new__(cls, name, bases, ns):
1240 return super().__new__(cls, nam
[all...]
H A Dtest_doctest.py90 def a_classmethod(cls, v):
109 def a_classmethod_property(cls):
114 return cls.a_class_attribute
H A Dtest_copy.py44 def __new__(cls, foo):
45 obj = object.__new__(cls)
197 def __new__(cls, foo):
198 self = int.__new__(cls)
214 def __new__(cls, *, foo):
215 self = int.__new__(cls)
309 def __new__(cls, foo):
310 obj = object.__new__(cls)
496 def __new__(cls, foo):
497 self = int.__new__(cls)
[all...]
/third_party/node/deps/v8/third_party/jinja2/
H A Dlexer.py251 def __init__(self, message, cls=TemplateSyntaxError):
253 self.error_class = cls
265 def __new__(cls, lineno, type, value):
266 return tuple.__new__(cls, (lineno, intern(str(type)), value))
455 def __new__(cls, *members, **kwargs):
456 return super(OptionalLStrip, cls).__new__(cls, members)
/third_party/python/Lib/
H A Dplatform.py737 def get(cls):
738 func = getattr(cls, f'get_{sys.platform}', cls.from_subprocess)
803 def _make(cls, iterable):
805 num_fields = len(cls._fields) - 1
806 result = cls.__new__(cls, *iterable)
H A Dpickle.py159 NEWOBJ = b'\x81' # build object by applying cls.__new__ to argtuple
635 cls, args, kwargs = args
636 if not hasattr(cls, "__new__"):
639 if obj is not None and cls is not obj.__class__:
643 save(cls)
648 func = partial(cls.__new__, cls, *args, **kwargs)
662 # def __newobj__(cls, *args):
663 # return cls.__new__(cls, *arg
[all...]
/third_party/skia/third_party/externals/jinja2/
H A Dlexer.py251 def __init__(self, message, cls=TemplateSyntaxError):
253 self.error_class = cls
265 def __new__(cls, lineno, type, value):
266 return tuple.__new__(cls, (lineno, intern(str(type)), value))
455 def __new__(cls, *members, **kwargs):
456 return super(OptionalLStrip, cls).__new__(cls, members)
/third_party/python/Lib/tkinter/test/
H A Dwidget_tests.py497 def decorator(cls):
498 for option in cls.OPTIONS:
500 if not hasattr(cls, methodname):
503 setattr(cls, methodname,
511 (option, cls.__name__))
513 setattr(cls, methodname, test)
514 return cls
/test/testfwk/developer_test/src/core/config/
H A Dresource_manager.py85 def _get_file_name_extension(cls, filepath):
92 def get_dir_name(cls, dir_path):
101 def get_env_data(cls, environment_list):
129 def get_nodeattrib_data(cls, data_dic):
/third_party/ltp/testcases/kernel/device-drivers/base/tbase/
H A Dtbase.c206 .cls = &test_sysclass,
727 struct class *cls = &test_class; in test_class_file() local
729 if (class_create_file(cls, &class_attr_test_id)) { in test_class_file()
734 class_remove_file(cls, &class_attr_test_id); in test_class_file()
/third_party/python/Lib/multiprocessing/
H A Dreduction.py44 def register(cls, type, reduce):
46 cls._extra_reducers[type] = reduce
49 def dumps(cls, obj, protocol=None):
51 cls(buf, protocol).dump(obj)
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
H A Dresponse.c309 * @param cls pointer to the response
316 file_reader (void *cls, uint64_t pos, char *buf, size_t max) in file_reader() argument
318 struct MHD_Response *response = cls; in file_reader()
335 * @param cls pointer to file descriptor
338 free_callback (void *cls) in free_callback() argument
340 struct MHD_Response *response = cls; in free_callback()
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
H A Dtest_get_chunked.c74 crc (void *cls, uint64_t pos, char *buf, size_t max) in crc() argument
76 struct MHD_Response **responseptr = cls; in crc()
99 ahc_echo (void *cls, in ahc_echo() argument
107 const char *me = cls; in ahc_echo()
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/
H A Dtest_get_chunked.c65 crc (void *cls, uint64_t pos, char *buf, size_t max) in crc() argument
67 struct MHD_Response **responseptr = cls; in crc()
90 ahc_echo (void *cls, in ahc_echo() argument
98 const char *me = cls; in ahc_echo()
H A Dtest_post.c55 completed_cb (void *cls, in completed_cb() argument
87 post_iterator (void *cls, in post_iterator() argument
95 int *eok = cls; in post_iterator()
107 ahc_echo (void *cls, in ahc_echo() argument
H A Dtest_post_form.c53 completed_cb (void *cls, in completed_cb() argument
84 post_iterator (void *cls, in post_iterator() argument
92 int *eok = cls; in post_iterator()
110 ahc_echo (void *cls, in ahc_echo() argument
/third_party/python/Modules/
H A D_queuemodule.c186 cls: defining_class
204 _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls, in _queue_SimpleQueue_get_impl() argument
260 PyObject *module = PyType_GetModule(cls); in _queue_SimpleQueue_get_impl()
291 cls: defining_class
302 PyTypeObject *cls) in _queue_SimpleQueue_get_nowait_impl()
305 return _queue_SimpleQueue_get_impl(self, cls, 0, Py_None); in _queue_SimpleQueue_get_nowait_impl()
301 _queue_SimpleQueue_get_nowait_impl(simplequeueobject *self, PyTypeObject *cls) _queue_SimpleQueue_get_nowait_impl() argument
/third_party/python/Lib/test/test_importlib/
H A Dtest_resource.py215 def setUpClass(cls):
216 sys.path.append(cls.site_dir)
219 def tearDownClass(cls):
220 sys.path.remove(cls.site_dir)
/third_party/rust/crates/regex/regex-syntax/src/hir/
H A Dprint.rs97 HirKind::Class(hir::Class::Unicode(ref cls)) => { in visit_pre()
99 for range in cls.iter() { in visit_pre()
110 HirKind::Class(hir::Class::Bytes(ref cls)) => { in visit_pre()
112 for range in cls.iter() { in visit_pre()
/third_party/littlefs/scripts/
H A Dsummary.py50 def __new__(cls, x=0):
65 return super().__new__(cls, x)
128 def __new__(cls, x=0.0):
143 return super().__new__(cls, x)
169 def __new__(cls, a=0, b=None):
176 return super().__new__(cls, Int(a), Int(b))
312 def __new__(cls, **r):
313 return cls.__mro__[1].__new__(cls,
/third_party/python/Lib/importlib/
H A Dutil.py278 def factory(cls, loader):
280 cls.__check_eager_loader(loader)
281 return lambda *args, **kwargs: cls(loader(*args, **kwargs))
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/
H A Dconventions.py50 def from_string(cls, s):
52 return cls.OR
54 return cls.AND
/third_party/protobuf/python/google/protobuf/internal/
H A D_parameterized.py178 def _StrClass(cls):
179 return '%s.%s' % (cls.__module__, cls.__name__)
/third_party/vulkan-headers/registry/spec_tools/
H A Dconventions.py50 def from_string(cls, s):
52 return cls.OR
54 return cls.AND

Completed in 26 milliseconds

1...<<11121314151617181920>>...30