Skip to content

Commit

Permalink
Nit: remove default args from Reader protocol (#82)
Browse files Browse the repository at this point in the history
Having default values on the protocol was validly throwing a type error, since AutoParallelRioReader doesn't have default values
  • Loading branch information
gjoseph92 authored Oct 28, 2021
1 parent 4ba90f4 commit 4dd3f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stackstac/reader_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def __init__(
spec: RasterSpec,
resampling: Resampling,
dtype: np.dtype,
fill_value: Optional[Union[int, float]] = np.nan,
rescale: bool = True,
gdal_env: Optional[LayeredEnv] = None,
fill_value: Optional[Union[int, float]],
rescale: bool,
gdal_env: Optional[LayeredEnv],
errors_as_nodata: Tuple[Exception, ...] = (),
) -> None:
"""
Expand Down

0 comments on commit 4dd3f26

Please sign in to comment.