-
-
Notifications
You must be signed in to change notification settings - Fork 377
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/addtyping #494
Merged
Merged
Fix/addtyping #494
Changes from 46 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
6083d96
first init
krishnaglodha fc2be1d
added typing for map
krishnaglodha 64df97f
added colormaps
krishnaglodha dcb8364
working on common
krishnaglodha 87ca1a6
fix spell error
krishnaglodha 3f433b5
added deck
krishnaglodha afc49d2
working on folium
krishnaglodha addaae4
worked on folium map
krishnaglodha cc1b3d5
fixed common
krishnaglodha f78e85b
added heremap
krishnaglodha 0763cc8
added kepler
krishnaglodha 3c459ee
added osm
krishnaglodha 4cf157b
updated pc
krishnaglodha 661b9e7
changed Tuple to tuple
krishnaglodha 43d03d8
added plotlymap
krishnaglodha 4598bc3
working on stack
krishnaglodha 5ad9fcc
updated osm.py and req
krishnaglodha ffaea01
updated stac
krishnaglodha fd43fbf
updated all py files
krishnaglodha 2481732
removed stac_io type hint
krishnaglodha c5e670e
tuple to Tuple
krishnaglodha 52ae83d
tuple to Tuple
krishnaglodha f6184f3
fixed typos
krishnaglodha 1172614
updated bokehmap to Sequency
krishnaglodha 5ccb401
updated stac and plotlymap
krishnaglodha 4b80a57
updated plotlymap
krishnaglodha dca221b
access_token - None
krishnaglodha c16c880
updated with black
krishnaglodha 76bf155
removed kml
krishnaglodha 249a888
updated basemap and stac
krishnaglodha bd45c1e
updated bokeh
krishnaglodha d586515
Merge branch 'master' into fix/addtyping
krishnaglodha b47efef
updated notebook
krishnaglodha e962c5e
Merge branch 'fix/addtyping' of https://github.com/krishnaglodha/leaf…
krishnaglodha 147552a
Update mkdocs.yml
krishnaglodha 35b010e
updated req
krishnaglodha 4ba8314
updated mkdocs
krishnaglodha de756ef
removed geemap
krishnaglodha f6c1a45
made collection as Optional
krishnaglodha c1a666a
added None to Collection
krishnaglodha 6e43faf
Fix bokeh error
giswqs 1794bf4
Fix bokehmap typing
giswqs cea8e8b
Pin pyymal version
giswqs fc6eaaf
Fix pyymal error
giswqs 61d6a19
Skip notebook 71
giswqs e6bf16b
Fix button width error
giswqs e0ecdf5
Fix basemap notebook error
giswqs 1224dcc
Improve typing
giswqs 6ba14b8
Improve typing
giswqs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Are we sure that we don't want the typing to raise an error on cases like:
In these cases, the defaults would not be used.
None
s would beused in the function body. There are a lot of cases like this in the PR where None is allowed, but would cause a runtime exception
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.
Maybe these
Optional[T]
s should be replaced byT
? Signaling to the user thatNone
is not a valid parameter, avoiding some runtime exceptionsThere 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.
We can improve the function body to raise errors when basemap is None. Indicating this error in the typing would also be helpful.
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.
Should we keep at Optional[str] and then handle
None
in code itself ?