Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork10.9k
MNT: Use isinstance() instead of comparing type()#28984
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Not entirely equivalent, in case of derived classes. Yet, I believethe new behaviour is the desired behaviour.
eacd058
to8abf3d9
Compare
jorenham left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
These seems safe enough. And in case anp.bytes_
is now passed asbytes
, I believe it would (still?) work.
5fe514b
intonumpy:mainUh oh!
There was an error while loading.Please reload this page.
Not entirely equivalent, in case of derived classes. Yet, I believe the new behaviour is the desired behaviour.