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

Implement type hints #14

Merged
merged 7 commits into from
Jun 30, 2023
Merged

Implement type hints #14

merged 7 commits into from
Jun 30, 2023

Conversation

AdamJCrawford
Copy link
Member

Add type hints to all functions. There are still some parameters that need to be type hinted, but I am unsure of what they are supposed to be.

@AdamJCrawford AdamJCrawford requested a review from nickrsan June 29, 2023 18:07
@nickrsan nickrsan self-assigned this Jun 29, 2023
@AdamJCrawford
Copy link
Member Author

@nickrsan I changed the exception messages, changed how the exceptions are being handled for the export_type check, and added type hintsfor pathlib Path objects

Copy link
Contributor

@nickrsan nickrsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Adam, nice work - you did great on everything - the things I had comments about were on things we hadn't discussed (primarily related to PyCharm reformatting the file). Are you willing to make the changes I mention in the comments, or would you prefer I do it myself?

ee_download/getting_types.py Outdated Show resolved Hide resolved
ee_download/image.py Show resolved Hide resolved
ee_download/image.py Outdated Show resolved Hide resolved
ee_download/image.py Outdated Show resolved Hide resolved
ee_download/image.py Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
setup.py Outdated Show resolved Hide resolved
ee_download/zonal.py Outdated Show resolved Hide resolved
@AdamJCrawford
Copy link
Member Author

@nickrsan Believe I have addressed everything.

@nickrsan
Copy link
Contributor

Wonderful. Thanks Adam. I'll take a look later tonight or tomorrow

Copy link
Contributor

@nickrsan nickrsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - really nice work and a good first PR on this repo. Thanks Adam.

@nickrsan nickrsan merged commit bbb2974 into release Jun 30, 2023
@nickrsan nickrsan deleted the Adam_dev branch June 30, 2023 23:11
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.

2 participants