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

Raise TypeError when given argument is not supported #282

Merged
merged 4 commits into from
Mar 11, 2020

Conversation

y1r
Copy link
Collaborator

@y1r y1r commented Mar 11, 2020

Resolves discussion in #281 (comment)

y1r added 2 commits March 11, 2020 03:06
When given `a` doesn't support buffer protocol, the previous code raises AttributeError but TypeError should be raised.
@y1r
Copy link
Collaborator Author

y1r commented Mar 11, 2020

@nsakabe-fixstars Could you review this PR?

Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit 110a787) passed on titanv.

Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit 110a787) passed on vega.

Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit 110a787) passed on titanv.

Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit 110a787) passed on vega.

Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit a61fb54) passed on titanv.

@LWisteria LWisteria added the bug Something isn't working label Mar 11, 2020
Copy link

@jenkins-maekawa jenkins-maekawa left a comment

Choose a reason for hiding this comment

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

Test (commit a61fb54) passed on vega.

Copy link

@nsakabe-fixstars nsakabe-fixstars left a comment

Choose a reason for hiding this comment

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

LGTM

@nsakabe-fixstars nsakabe-fixstars merged commit 30a7193 into clpy Mar 11, 2020
@nsakabe-fixstars nsakabe-fixstars deleted the 153-fix-type-check branch March 11, 2020 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants