style(API): Put multiple exceptions in one line
This commit is contained in:
parent
5ab5314899
commit
fe52d9b346
@ -164,11 +164,7 @@ class Expression(object):
|
||||
"""
|
||||
try:
|
||||
t = self._tree.apply_on_last_level(typing)
|
||||
except TypingError:
|
||||
return self
|
||||
except NotImplementedError:
|
||||
return self
|
||||
except AttributeError:
|
||||
except (TypingError, NotImplementedError, AttributeError):
|
||||
return self
|
||||
else:
|
||||
return Expression(t)._typing()
|
||||
|
Loading…
Reference in New Issue
Block a user