MCPcopy Index your code
hub / github.com/python/cpython / SubStr

Class SubStr

Lib/test/test_descr.py:1315–1316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1313
1314 # Test string subclass in `__slots__`, see gh-98783
1315 class SubStr(str):
1316 pass
1317 class X(object):
1318 __slots__ = (SubStr('x'),)
1319 X().x = 1

Callers 1

XClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…