☰
Debian Codegraph
@
3.13.15-1
3.13.14-1
3.13.12-1
/
/
Lib
/
test
/
test_module
/
good_getattr.py
☽
☼
Lib/test/test_module/good_getattr.py
code
plain
raw
1
x = 1
2
3
def __dir__():
4
return ['a', 'b', 'c']
5
6
def __getattr__(name):
7
if name == "yolo":
8
raise AttributeError("Deprecated, use whatever instead")
9
return f"There is {name}"
10
11
y = 2