Skip to content

Commit

Permalink
Fix is_newtype() check (bloomberg#36)
Browse files Browse the repository at this point in the history
Fixes: bloomberg#35

Signed-off-by: Siddhant Kumar <[email protected]>
  • Loading branch information
Siddhant Kumar authored and keiclone committed May 26, 2020
1 parent 3d7ab09 commit f596171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attrs_strict/_commons.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
def is_newtype(type_):
return (
hasattr(type_, "__name__")
and hasattr(type_, "__supertype__")
and type_.__module__ == "typing"
and type_.__name__ == "SomeNew"
)


Expand Down

0 comments on commit f596171

Please sign in to comment.