We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d7fd2 commit 4e27f9bCopy full SHA for 4e27f9b
src/stratis_cli/_error_reporting.py
@@ -17,6 +17,7 @@
17
# isort: STDLIB
18
import os
19
import sys
20
+from collections.abc import Iterator
21
22
# isort: THIRDPARTY
23
import dbus
@@ -79,7 +80,7 @@ def _interface_name_to_common_name(interface_name):
79
80
raise StratisCliUnknownInterfaceError(interface_name) # pragma: no cover
81
82
-def get_errors(exc: BaseException):
83
+def get_errors(exc: BaseException) -> Iterator[BaseException]:
84
"""
85
Generates a sequence of exceptions starting with exc and following the chain
86
of causes.
0 commit comments