Skip to content

Commit fba48cf

Browse files
committed
Remove usage of typing.Literal
(requires Python 3.8)
1 parent 7be6c1e commit fba48cf

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/packages/isce3/unwrap/snaphu.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,6 @@ def from_flat_file(
765765
]
766766
CostParams.__doc__ = """SNAPHU cost mode configuration parameters"""
767767

768-
InitMethod = Literal["mst", "mcf"]
769-
InitMethod.__doc__ = """SNAPHU initialization method"""
770-
771768

772769
def unwrap(
773770
unw: isce3.io.gdal.Raster,
@@ -777,7 +774,7 @@ def unwrap(
777774
nlooks: float,
778775
cost: str = "smooth",
779776
cost_params: Optional[CostParams] = None,
780-
init_method: InitMethod = "mcf",
777+
init_method: str = "mcf",
781778
pwr: Optional[isce3.io.gdal.Raster] = None,
782779
mask: Optional[isce3.io.gdal.Raster] = None,
783780
unwest: Optional[isce3.io.gdal.Raster] = None,

0 commit comments

Comments
 (0)