8000 Merge multiple isinstance() calls to one by PatrickCai · Pull Request #6513 · encode/django-rest-framework · GitHub
[go: up one dir, main page]

Skip to content

Merge multiple isinstance() calls to one #6513

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

Merged
merged 2 commits into from
Mar 22, 2019
Merged

Conversation

PatrickCai
Copy link
Contributor

See https://docs.python.org/3/library/functions.html#isinstance

If classinfo is a tuple of type objects (or recursively, other such
tuples), return true if object is an instance of any of the type

@tomchristie
Copy link
Member

Yup - absolutely!
Coupla syntax errors to resolve first, but otherwise yes please.

@carltongibson
Copy link
Collaborator

Refs #6481.

Fix `)` mismatch
@PatrickCai
Copy link
Contributor Author

@tomchristie I am wondering is there anything else I should do before it being merged?

@tomchristie tomchristie merged commit b25d245 into encode:master Mar 22, 2019
@tomchristie
Copy link
Member

I am wondering is there anything else I should do before it being merged?

Nothing else, no. 😀
Thanks!

pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
* Merge multiple isinstance() calls to one

See https://docs.python.org/3/library/functions.html#isinstance

* Fix `)` mismatch

Fix `)` mismatch
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Merge multiple isinstance() calls to one

See https://docs.python.org/3/library/functions.html#isinstance

* Fix `)` mismatch

Fix `)` mismatch
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.

3 participants
0