Skip to content

Commit 1dcc3f6

Browse files
committed
typing fix
1 parent a9516af commit 1dcc3f6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rich/traceback.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
List,
1515
Optional,
1616
Sequence,
17+
Set,
1718
Tuple,
1819
Type,
1920
Union,
@@ -418,7 +419,7 @@ def extract(
418419
locals_max_string: int = LOCALS_MAX_STRING,
419420
locals_hide_dunder: bool = True,
420421
locals_hide_sunder: bool = False,
421-
_visited_exceptions: set[BaseException] | None = None,
422+
_visited_exceptions: Optional[set[BaseException]] = None,
422423
) -> Trace:
423424
"""Extract traceback information.
424425
@@ -444,7 +445,7 @@ def extract(
444445

445446
notes: List[str] = getattr(exc_value, "__notes__", None) or []
446447

447-
grouped_exceptions: set[BaseException] = (
448+
grouped_exceptions: Set[BaseException] = (
448449
set() if _visited_exceptions is None else _visited_exceptions
449450
)
450451

0 commit comments

Comments
 (0)