Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ t
Method
t
Lib/test/test_functools.py:2760–2761 ·
view source on GitHub ↗
(self, arg)
Source
from the content-addressed store, hash-verified
2758
class
A:
2759
@functools.singledispatchmethod
2760
def
t(self, arg):
2761
self.arg =
"base"
2762
@t.register(int)
2763
def
_(self, arg):
2764
self.arg =
"int"
Callers
12
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_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
test_method_bad_hash
Method · 0.45
Calls
1
cls
Class · 0.50
Tested by
no test coverage detected