Skip to content
Merged
Changes from all commits
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
7 changes: 3 additions & 4 deletions src/cattrs/_compat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import builtins
import sys
from collections import deque
from collections.abc import MutableSet as AbcMutableSet
Expand Down Expand Up @@ -62,10 +61,10 @@ def get_origin(cl):
else:
from typing import Final, Protocol, get_args, get_origin

if "ExceptionGroup" not in dir(builtins):
from exceptiongroup import ExceptionGroup
else:
if is_py311_plus:
ExceptionGroup = ExceptionGroup
else:
from exceptiongroup import ExceptionGroup as ExceptionGroup # noqa: PLC0414


def has(cls):
Expand Down