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

Class X

Lib/test/test_fstring.py:41–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 def test__format__lookup(self):
40 # Make sure __format__ is looked up on the type, not the instance.
41 class X:
42 def __format__(self, spec):
43 return 'class'
44
45 x = X()
46

Callers 3

test__format__lookupMethod · 0.70
test_astMethod · 0.70

Calls

no outgoing calls

Tested by 3

test__format__lookupMethod · 0.56
test_astMethod · 0.56