Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ t
Method
t
Lib/test/test_functools.py:2798–2799 ·
view source on GitHub ↗
(self, arg)
Source
from the content-addressed store, hash-verified
2796
class
A:
2797
@functools.singledispatchmethod
2798
def
t(self, arg):
2799
self.arg =
"base"
2800
@t.register(int)
2801
def
_(self, arg):
2802
self.arg =
"int"
Callers
13
test_method_register
Method · 0.95
test_staticmethod_slotted_class
Method · 0.95
test_type_ann_register
Method · 0.95
test_method_equal_instances
Method · 0.95
test_method_no_reference_loops
Method · 0.95
test_method_non_descriptor
Method · 0.95
test_staticmethod_register
Method · 0.45
test_classmethod_register
Method · 0.45
test_callable_register
Method · 0.45
test_staticmethod_type_ann_register
Method · 0.45
test_classmethod_type_ann_register
Method · 0.45
test_invalid_positional_argument_singledispatchmethod
Method · 0.45
Calls
1
cls
Class · 0.50
Tested by
no test coverage detected