Files
andrey.matveevandintellij-monorepo-bot d66e0eec0e PY-10184 Impl hasattr support
GitOrigin-RevId: e5826372ddfe233656097da774d978c57ee54937
2019-12-23 13:08:30 +00:00

3 lines
118 B
Python

def foo(x):
if hasattr(x, 'foo') and not hasattr(x, 'bar') and not not hasattr(x, 'baz'):
print(x.<caret>)