style(API): Put multiple exceptions in one line

This commit is contained in:
Bertrand Benjamin 2018-11-21 09:51:14 +01:00
parent 5ab5314899
commit fe52d9b346

View File

@ -164,11 +164,7 @@ class Expression(object):
""" """
try: try:
t = self._tree.apply_on_last_level(typing) t = self._tree.apply_on_last_level(typing)
except TypingError: except (TypingError, NotImplementedError, AttributeError):
return self
except NotImplementedError:
return self
except AttributeError:
return self return self
else: else:
return Expression(t)._typing() return Expression(t)._typing()