Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix is_newtype() check #36

Merged
merged 1 commit into from
May 24, 2020
Merged

Conversation

saytosid
Copy link
Contributor

@saytosid saytosid commented May 24, 2020

*Issue number of the reported bug or feature request: #35

Describe your changes
Changed is_newtype() to check for existence of __supertype__ .

I couldn't find a documented way to check for isinstance(_, NewType). After looking at the implementation, this should be enough.

Fixes: bloomberg#35

Signed-off-by: Siddhant Kumar <[email protected]>
Copy link
Contributor

@erikseulean erikseulean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @saytosid

@erikseulean erikseulean merged commit 21abe90 into bloomberg:master May 24, 2020
@saytosid saytosid deleted the fix/is-newtype branch May 24, 2020 22:38
keiclone pushed a commit to keiclone/attrs-strict that referenced this pull request May 26, 2020
Fixes: bloomberg#35

Signed-off-by: Siddhant Kumar <[email protected]>
Signed-off-by: Wilfred Wong <[email protected]>
keiclone pushed a commit to keiclone/attrs-strict that referenced this pull request May 26, 2020
Fixes: bloomberg#35

Signed-off-by: Siddhant Kumar <[email protected]>
Signed-off-by: Wilfred Wong <[email protected]>
keiclone pushed a commit to keiclone/attrs-strict that referenced this pull request May 26, 2020
Fixes: bloomberg#35

Signed-off-by: Siddhant Kumar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants