Skip to content

Commit

Permalink
Add mypy cast comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke committed Jul 26, 2023
1 parent e97c492 commit f5bcea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pangeo_forge_recipes/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,10 @@ def __post_init__(self):

def determine_target_chunks(self, schema: XarraySchema) -> Dict[str, int]:
# if dynamic chunking is chosen, set the objects target_chunks here
# We need to explicitly cast the types here because we know
# that for the combinations chosen here (dynamic vs static chunking)
# the type of the input is never None (our __post_init__ method takes
# care of raising errors if this is the case).
if self.target_chunks_aspect_ratio is not None:
target_chunks = dynamic_target_chunks_from_schema(
schema,
Expand Down

0 comments on commit f5bcea8

Please sign in to comment.