-
Notifications
You must be signed in to change notification settings - Fork 38
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
Promote gare
from experimental
#1048
Conversation
The `auth_requirements_error` module is moved to `globus_sdk.gare` and docs and importts are updated. Included in this change, `GlobusAuthRequirementsError` has been renamed to `GARE`, as the `Error` suffix to a name typically indicates that a class is an exception class. Aliasing has been put in place from `experimental` to the new code location. As a minor, related fix `_serializable.Serializable` now uses a `Self` type annotation, rather than a type var. This improves the doc rendering of the `from_dict` and `to_dict` methods, as they show the self-type rather than an unbound type variable T.
In order to use `typing.Self`, we must install `typing_extensions` on Python 3.10.
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.
Apart from the suggestions above, I'm happy with how this came out 🙌
And include testing of the rename aliases.
Co-authored-by: Ada <[email protected]>
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.
LOL @ the plaintive wail in that last commit. Yay for the line-length win everywhere, including our other products! 😁
The
auth_requirements_error
module is moved toglobus_sdk.gare
and docs and importts are updated.Included in this change,
GlobusAuthRequirementsError
has been renamed toGARE
, as theError
suffix to a name typically indicates that a class is an exception class.Aliasing has been put in place from
experimental
to the new code location.As a minor, related fix
_serializable.Serializable
now uses aSelf
type annotation, rather than a type var. This improves the doc rendering of thefrom_dict
andto_dict
methods, as they show the self-type rather than an unbound type variable T.📚 Documentation preview 📚: https://globus-sdk-python--1048.org.readthedocs.build/en/1048/