Merge remote-tracking branch 'upstream/master' into mm

This commit is contained in:
Bruno Oliveira
2019-08-26 20:00:30 -03:00
70 changed files with 507 additions and 286 deletions

View File

@@ -596,7 +596,7 @@ class ExceptionInfo(Generic[_E]):
)
return fmt.repr_excinfo(self)
def match(self, regexp: Union[str, Pattern]) -> bool:
def match(self, regexp: "Union[str, Pattern]") -> bool:
"""
Check whether the regular expression 'regexp' is found in the string
representation of the exception using ``re.search``. If it matches