-
Notifications
You must be signed in to change notification settings - Fork 58
Service and Model Cleanup #277
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
Conversation
@@ -45,7 +43,7 @@ def get_lowest_object_rate( | |||
return lowest_rate | |||
|
|||
|
|||
def get_lowest_smart_rate(smart_rates, delivery_days: int, delivery_accuracy: str) -> Rate: |
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.
Reviewer Note
These type hints were removed due to circular import issues. Will try and revisit this when I come back and fix all type hints
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.
Put single quotes around the word Rate
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.
It's the import itself that is a problem. I already tried that approach
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 fine, there are missing type hints for some parameters that need to be added but I assume there will be a follow-up PR to address that?
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 fine, nice clean up work!
Description
This PR is a follow-up cleanup after breaking out services and models and does the following:
__init__
files for cleaner names inside the libraryI have another PR planned to cleanup the requestor and EasyPost object files which will follow this.
Testing
Fixed various tests that needed that and re-recorded cassettes.
Pull Request Type
Please select the option(s) that are relevant to this PR.