Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Apr 14, 2022
1 parent aac7a49 commit e3bf3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cattrs/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def is_union_type(obj):
)

def get_newtype_base(typ: Any) -> Optional[type]:
supertype = getattr(type, "__supertype__", None)
supertype = getattr(typ, "__supertype__", None)
if (
supertype is not None
and getattr(typ, "__qualname__", "") == "NewType.<locals>.new_type"
Expand Down

0 comments on commit e3bf3e0

Please sign in to comment.