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

Method __get__

Lib/test/test_descr.py:4592–4593  ·  view source on GitHub ↗
(self, ob, type=None)

Source from the content-addressed store, hash-verified

4590
4591 class Descr(object):
4592 def __get__(self, ob, type=None):
4593 return 1
4594
4595 class C(object):
4596 attr = Descr()

Callers 11

__call__Method · 0.45
test_classmethodsMethod · 0.45
test_classicMethod · 0.45
test_methodsMethod · 0.45
test_methods_in_cMethod · 0.45
__get__Method · 0.45
test_propertiesMethod · 0.45
test_supersMethod · 0.45
test_meth_class_getMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected