Skip to content

Commit c459288

Browse files
committed
work around missing typing.Final in python 3.7
1 parent 2e52303 commit c459288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyfabm/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
TypeVar,
1717
List,
1818
Dict,
19-
Final,
19+
Literal,
2020
Type,
2121
overload,
2222
cast
@@ -125,7 +125,7 @@ def get_lib(name: str) -> FABMDLL:
125125
lib.mask_type = mask_type.value
126126
lib.variable_bottom_index = variable_bottom_index.value != 0
127127

128-
CONTIGUOUS: Final = "CONTIGUOUS"
128+
CONTIGUOUS: Literal["CONTIGUOUS"] = "CONTIGUOUS"
129129
arrtype0D = np.ctypeslib.ndpointer(dtype=lib.dtype, ndim=0, flags=CONTIGUOUS)
130130
arrtype1D = np.ctypeslib.ndpointer(dtype=lib.dtype, ndim=1, flags=CONTIGUOUS)
131131
arrtypeInterior = np.ctypeslib.ndpointer(

0 commit comments

Comments
 (0)