-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Improve check for bbox #27514
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
Improve check for bbox #27514
Conversation
Doc build failed? |
Yes, everything failed earlier this morning due to network issues. I've restarted them all. |
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.
Seems more natural to just check_isinstance(BboxBase, bbox=bbox) if we want to go that direction, no? (Also consistent with the line immediately after.)
Feel free to dismiss if you disagree.
Except that a TypeError will be raised. Which on the other hand makes more sense. I can change if there is agreement on this. Edit: this also raises the question if |
I added the change as a second commit. Not sure if I should deprecate it as a property or classproperty though. |
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
PR summary
Passing something else than a
Transform
would lead to anAttributeError
, but now the better error message should show up.PR checklist