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

update typing information for python 3.9 #175

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

vincentsarago
Copy link
Member

Well I'm still running python 3.9 🙉

stac_catalog_url: None | str = None
config_file_path: None | str = "browser_config.js"
stac_browser_github_tag: str = "v3.1.0"
stac_catalog_url: str
Copy link
Member Author

Choose a reason for hiding this comment

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

The URL is not really optional (eoapi-cdk will complain if None)

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, I think this works.

@emileten
Copy link
Contributor

Actually before merging, should we change the title of this PR @vincentsarago ?

I don't see anything related to the python version set up. Just browser related configuration changes.

@vincentsarago
Copy link
Member Author

I don't think you can do stac_browser_github_tag: None | str = "v3.1.0" with python 3.9

we could add from __future__ import annotations to make this compatible with earlier python version though

https://stackoverflow.com/questions/69440494/python-3-10-optionaltype-or-type-none

@vincentsarago vincentsarago merged commit 131e5f1 into main Jan 19, 2024
2 checks passed
@vincentsarago vincentsarago deleted the patch/make-deployment-python3.9-friendly branch January 19, 2024 08:12
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