MCPcopy Index your code
hub / github.com/RustPython/RustPython / meta

Class meta

Lib/test/test_inspect/test_inspect.py:2477–2478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2475
2476 def test_metaclass(self):
2477 class meta(type):
2478 attr = 'foo'
2479 class Thing(object, metaclass=meta):
2480 pass
2481 self.assertEqual(inspect.getattr_static(Thing, 'attr'), 'foo')

Callers

nothing calls this directly

Calls 1

descriptorClass · 0.85

Tested by

no test coverage detected