Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
completion
/
hasattrCompletion
/
hasattrInElifBranch.py
blob: c8cfa319664e00ede070e548557e2e3d148aacbf [
file
]
def
foo
(
x
:
int
):
if
hasattr
(
x
,
'foo1'
):
print
(
x
.
foo1
)
elif
hasattr
(
x
,
'foo2'
):
print
(
x
.<
caret
>)