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
1 changed files with 1 additions and 5 deletions

View File

@ -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()