mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 23:06:24 +07:00
7 lines
150 B
Python
7 lines
150 B
Python
def foo(x: int):
|
|
if hasattr(x, 'foo1'):
|
|
print(x.foo1)
|
|
elif hasattr(x, 'foo2'):
|
|
print(x.foo)
|
|
else:
|
|
print(x.<caret>) |