Home
last modified time | relevance | path

Searched refs:functools (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/third_party/python/Lib/test/
Dtest_functools.py26 import functools
472 nothing = functools.partialmethod(capture)
473 positional = functools.partialmethod(capture, 1)
474 keywords = functools.partialmethod(capture, a=2)
475 both = functools.partialmethod(capture, 3, b=4)
476 spec_keywords = functools.partialmethod(capture, self=1, func=2)
478 nested = functools.partialmethod(positional, 5)
480 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7)
482 static = functools.partialmethod(staticmethod(capture), 8)
483 cls = functools.partialmethod(classmethod(capture), d=9)
[all …]
/third_party/python/Lib/asyncio/
Dformat_helpers.py1 import functools
15 if isinstance(func, functools.partial):
17 if isinstance(func, functools.partialmethod):
45 if isinstance(func, functools.partial):
Dthreads.py3 import functools
24 func_call = functools.partial(ctx.run, func, *args, **kwargs)
Dcoroutines.py4 import functools
122 @functools.wraps(func)
143 @functools.wraps(func)
/third_party/python/Lib/test/test_zoneinfo/
D_support.py2 import functools
16 cached = functools.lru_cache(None)(f)
18 @functools.wraps(f)
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_dynamic_stubs_test.py17 import functools
47 @functools.wraps(fn)
60 @functools.wraps(fn)
/third_party/python/Lib/importlib/metadata/
D_functools.py2 import functools
73 cache_wrapper = cache_wrapper or functools.lru_cache()
D__init__.py12 import functools
164 return functools.reduce(getattr, attrs, module)
239 _warn = functools.partial(
388 _warn = functools.partial(
560 builder = functools.partial(
747 @functools.lru_cache() # type: ignore
976 unique = functools.partial(unique_everseen, key=norm_name)
/third_party/skia/third_party/externals/brotli/python/tests/
Dcompressor_test.py6 import functools
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
Ddecompressor_test.py6 import functools
37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
/third_party/python/Lib/idlelib/idle_test/
Dtkinter_testing_utils.py2 import functools
31 @functools.wraps(test_method)
/third_party/python/Lib/importlib/
Dutil.py16 import functools
150 @functools.wraps(fxn)
170 @functools.wraps(fxn)
203 @functools.wraps(fxn)
D_common.py4 import functools
100 @functools.singledispatch
/third_party/python/Lib/test/support/
Dhashlib_helper.py1 import functools
38 @functools.wraps(func_or_class)
Dtestresult.py5 import functools
145 return functools.partial(unittest.TextTestRunner,
149 return functools.partial(QuietRegressionTestRunner, buffer=buffer)
/third_party/grpc/src/python/grpcio/grpc/framework/foundation/
Dcallable_util.py19 import functools
76 @functools.wraps(behavior)
/third_party/grpc/src/python/grpcio_tests/tests_aio/unit/
D_test_base.py16 import functools
29 @functools.wraps(f)
/third_party/grpc/src/python/grpcio/grpc/experimental/
D__init__.py20 import functools
74 @functools.wraps(f)
/third_party/cef/tools/yapf/yapf/yapflib/
Dpy3compat.py32 import functools
33 lru_cache = functools.lru_cache
/third_party/python/Lib/multiprocessing/
Dreduction.py12 import functools
226 return functools.partial(func, *args, **keywords)
227 register(functools.partial, _reduce_partial)
280 register(functools.partial, _reduce_partial)
/third_party/mindspore/tests/st/fl/cross_silo_faster_rcnn/src/model_utils/
Dmoxing_adapter.py19 import functools
81 @functools.wraps(run_func)
/third_party/python/Lib/test/test_zoneinfo/data/
Dupdate_test_data.py15 import functools
41 @functools.lru_cache(maxsize=None)
/third_party/mindspore/tests/ut/python/ops/
Dtest_ops_reid.py16 import functools
152 test_case = functools.reduce(lambda x, y: x + y, test_case_lists)
/third_party/python/Lib/
Dlinecache.py8 import functools
179 get_lines = functools.partial(get_source, name)
Dipaddress.py14 import functools
566 @functools.total_ordering
674 @functools.total_ordering
761 @functools.cached_property
766 @functools.cached_property
1327 @functools.lru_cache()
1339 @functools.lru_cache()
1396 @functools.cached_property
1521 @functools.lru_cache()
2000 @functools.lru_cache()
[all …]

12345678910>>...13