Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove special-casing for show_group
  • Loading branch information
AlexWaygood authored May 27, 2024
commit cd5f9cda4397aeb2bbba3397c13f39758a8e13ad
10 changes: 2 additions & 8 deletions stdlib/traceback.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,10 @@ def print_list(extracted_list: Iterable[FrameSummary | _FrameSummaryTuple], file

if sys.version_info >= (3, 13):
@overload
def format_exception_only(exc: BaseExceptionGroup[BaseException], /, *, show_group: bool = False) -> list[str]: ...
def format_exception_only(exc: BaseException | None, /, *, show_group: bool = False) -> list[str]: ...
@overload
def format_exception_only(
exc: Unused, /, value: BaseExceptionGroup[BaseException], *, show_group: bool = False
) -> list[str]: ...
@overload
def format_exception_only(exc: BaseException | None, /, *, show_group: Literal[False] = False) -> list[str]: ...
@overload
def format_exception_only(
exc: Unused, /, value: BaseException | None, *, show_group: Literal[False] = False
exc: Unused, /, value: BaseException | None, *, show_group: bool = False
) -> list[str]: ...

elif sys.version_info >= (3, 10):
Expand Down