Skip to content

Commit 3616278

Browse files
committed
fix mypy
1 parent ae6f04f commit 3616278

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/idom/testing.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,19 @@ def url(self, path: str = "", query: Optional[Any] = None) -> str:
112112

113113
def list_logged_exceptions(
114114
self,
115-
pattern: Optional[str] = "",
116-
types: Union[Type[Exception], Tuple[Type[Exception], ...]] = Exception,
115+
pattern: str = "",
116+
types: Union[Type[Any], Tuple[Type[Any], ...]] = Exception,
117117
log_level: int = logging.ERROR,
118118
del_log_records: bool = True,
119-
) -> List[Exception]:
119+
) -> List[BaseException]:
120120
"""Return a list of logged exception matching the given criteria
121121
122122
Args:
123123
log_level: The level of log to check
124124
exclude_exc_types: Any exception types to ignore
125125
del_log_records: Whether to delete the log records for yielded exceptions
126126
"""
127-
found: List[Exception] = []
127+
found: List[BaseException] = []
128128
compiled_pattern = re.compile(pattern)
129129
for index, record in enumerate(self.log_records):
130130
if record.levelno >= log_level and record.exc_info is not None:

0 commit comments

Comments
 (0)