Skip to content

Commit 4e27f9b

Browse files
committed
Add return type to get_errors method
Signed-off-by: mulhern <amulhern@redhat.com>
1 parent 24d7fd2 commit 4e27f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stratis_cli/_error_reporting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# isort: STDLIB
1818
import os
1919
import sys
20+
from collections.abc import Iterator
2021

2122
# isort: THIRDPARTY
2223
import dbus
@@ -79,7 +80,7 @@ def _interface_name_to_common_name(interface_name):
7980
raise StratisCliUnknownInterfaceError(interface_name) # pragma: no cover
8081

8182

82-
def get_errors(exc: BaseException):
83+
def get_errors(exc: BaseException) -> Iterator[BaseException]:
8384
"""
8485
Generates a sequence of exceptions starting with exc and following the chain
8586
of causes.

0 commit comments

Comments
 (0)