-
Notifications
You must be signed in to change notification settings - Fork 46
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
Deprecate tools inheritance #224
Conversation
…ing possible return api call returns
@@ -219,7 +219,7 @@ def _request( | |||
data: Union[dict, list] = {}, | |||
querystring: dict = {}, | |||
return_text: bool = True, | |||
) -> Union[str, dict, requests.Response]: | |||
): # Union[str, dict, requests.Response]: |
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.
Not exactly sure why lots of ambiogus response type checks were only triggered after the class inheritance removal, but had to deactivate to not add type assertions in every function only so that mypy understands the return type. The current potential return types of our API are not ideal (besides json, a few responses give text or e.g. quicklook data chunks). This will at some point be adressed at API level.
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.
Was looking at the problem before and could not make sense of it. Don't think it's critical, but it would surely be good if that would be resolved some time in the future; as this repo is open source people will wonder. Maybe create a tech ticket?
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.
LGTM
@@ -219,7 +219,7 @@ def _request( | |||
data: Union[dict, list] = {}, | |||
querystring: dict = {}, | |||
return_text: bool = True, | |||
) -> Union[str, dict, requests.Response]: | |||
): # Union[str, dict, requests.Response]: |
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.
Was looking at the problem before and could not make sense of it. Don't think it's critical, but it would surely be good if that would be resolved some time in the future; as this repo is open source people will wonder. Maybe create a tech ticket?
Fully deprecates the Tools module inheritance in the other classes (after deprecation process). The tools functions will only be available from the
up42
import object.Items:
For release: