-
Notifications
You must be signed in to change notification settings - Fork 108
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
switch to pyproject.toml #490
Conversation
indexes=asset_indexes.get(asset, kwargs.pop("indexes", None)), | ||
expression=asset_expression.get(asset), | ||
indexes=asset_indexes.get(asset, kwargs.pop("indexes", None)), # type: ignore | ||
expression=asset_expression.get(asset), # type: ignore |
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.
I don't fully understand why mypy
doesn't pickup asset_indexes = asset_indexes or {}
at L440 🤷♂️
@@ -416,7 +416,7 @@ def part( | |||
**kwargs, | |||
) | |||
|
|||
if expression: | |||
if expression and indexes: |
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.
indexes
will always be defined when using expression because we create indexes
from expression
at L402. adding and indexes
just makes mypy happy
band_names: Optional[List[str]] = None | ||
crs: Optional[CRS] | ||
bounds: Optional[BBox] | ||
band_names: List[str] |
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.
makes mypy happy
Using my admin power to merge this PR. Comment are still welcome but so far we didn't received any negative feedback for moving rio-cogeo/rio-viz to pyproject.toml/flit. Typing issue could be resolved on other PR |
This PR does:
tox