-
-
Notifications
You must be signed in to change notification settings - Fork 133
Closed
Description
- cattrs version: 22.1
- Python version: 3.9.10 (Pypy 7.3.9)
- Operating System: Windows 10
Description
cattrs fails to import.
raised error like this
TypeError: 'module' object is not iterable
in _compat.py, there is
if "ExceptionGroup" not in __builtins__:
from exceptiongroup import ExceptionGroup
else:
ExceptionGroup = ExceptionGroupaccording to the pypy's doc https://doc.pypy.org/en/latest/cpython_differences.html
"the builtins name is always referencing the builtin module, never a dictionary as it sometimes is in CPython"
so "if "ExceptionGroup" not in builtins" is invalid on pypy
What I Did
import cattrsReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels