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

Fix the return type annotation for get_identities #716

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Apr 14, 2023

This was annotated as GlobusHTTPResponse when it should have been GetIdentitiesResponse. The result is that type checkers could not see that an iterable type was returned.

A new mypy test case confirms that the type is now seen correctly, as well as validating several arguments and usages for get_identities.


📚 Documentation preview 📚: https://globus-sdk-python--716.org.readthedocs.build/en/716/

This was annotated as GlobusHTTPResponse when it should have been
GetIdentitiesResponse. The result is that type checkers could not see
that an iterable type was returned.

A new mypy test case confirms that the type is now seen correctly, as
well as validating several arguments and usages for get_identities.
@sirosen sirosen merged commit 3fe8546 into globus:main Apr 14, 2023
@sirosen sirosen deleted the fix-type-error branch April 14, 2023 15:42
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