Searched refs:functools (Results 1 – 25 of 307) sorted by relevance
12345678910>>...13
/third_party/python/Lib/test/ |
D | test_functools.py | 26 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/ |
D | format_helpers.py | 1 import functools 15 if isinstance(func, functools.partial): 17 if isinstance(func, functools.partialmethod): 45 if isinstance(func, functools.partial):
|
D | threads.py | 3 import functools 24 func_call = functools.partial(ctx.run, func, *args, **kwargs)
|
D | coroutines.py | 4 import functools 122 @functools.wraps(func) 143 @functools.wraps(func)
|
/third_party/python/Lib/test/test_zoneinfo/ |
D | _support.py | 2 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.py | 17 import functools 47 @functools.wraps(fn) 60 @functools.wraps(fn)
|
/third_party/python/Lib/importlib/metadata/ |
D | _functools.py | 2 import functools 73 cache_wrapper = cache_wrapper or functools.lru_cache()
|
D | __init__.py | 12 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/ |
D | compressor_test.py | 6 import functools 47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE) 58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
D | decompressor_test.py | 6 import functools 37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
|
/third_party/python/Lib/idlelib/idle_test/ |
D | tkinter_testing_utils.py | 2 import functools 31 @functools.wraps(test_method)
|
/third_party/python/Lib/importlib/ |
D | util.py | 16 import functools 150 @functools.wraps(fxn) 170 @functools.wraps(fxn) 203 @functools.wraps(fxn)
|
D | _common.py | 4 import functools 100 @functools.singledispatch
|
/third_party/python/Lib/test/support/ |
D | hashlib_helper.py | 1 import functools 38 @functools.wraps(func_or_class)
|
D | testresult.py | 5 import functools 145 return functools.partial(unittest.TextTestRunner, 149 return functools.partial(QuietRegressionTestRunner, buffer=buffer)
|
/third_party/grpc/src/python/grpcio/grpc/framework/foundation/ |
D | callable_util.py | 19 import functools 76 @functools.wraps(behavior)
|
/third_party/grpc/src/python/grpcio_tests/tests_aio/unit/ |
D | _test_base.py | 16 import functools 29 @functools.wraps(f)
|
/third_party/grpc/src/python/grpcio/grpc/experimental/ |
D | __init__.py | 20 import functools 74 @functools.wraps(f)
|
/third_party/cef/tools/yapf/yapf/yapflib/ |
D | py3compat.py | 32 import functools 33 lru_cache = functools.lru_cache
|
/third_party/python/Lib/multiprocessing/ |
D | reduction.py | 12 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/ |
D | moxing_adapter.py | 19 import functools 81 @functools.wraps(run_func)
|
/third_party/python/Lib/test/test_zoneinfo/data/ |
D | update_test_data.py | 15 import functools 41 @functools.lru_cache(maxsize=None)
|
/third_party/mindspore/tests/ut/python/ops/ |
D | test_ops_reid.py | 16 import functools 152 test_case = functools.reduce(lambda x, y: x + y, test_case_lists)
|
/third_party/python/Lib/ |
D | linecache.py | 8 import functools 179 get_lines = functools.partial(get_source, name)
|
D | ipaddress.py | 14 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