Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ C
Class
C
Lib/test/test_collections.py:1381–1382 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1379
def
test_direct_subclassing(self):
1380
for
B in Hashable, Iterable, Iterator, Reversible, Sized, Container, Callable:
1381
class
C(B):
1382
pass
1383
self.assertIsSubclass(C, B)
1384
self.assertNotIsSubclass(int, C)
1385
Callers
2
validate_abstract_methods
Method · 0.70
validate_isinstance
Method · 0.70
Calls
no outgoing calls
Tested by
2
validate_abstract_methods
Method · 0.56
validate_isinstance
Method · 0.56