Skip to content
Snippets Groups Projects
Commit d53cd8fa authored by webmanue's avatar webmanue
Browse files

rename TypeVar 'T' to 'DataType'

- fixes error in CI
parent aae892f8
No related branches found
No related tags found
No related merge requests found
Pipeline #124730 passed
......@@ -92,10 +92,10 @@ def cell_index_permutation() -> typing.List[int]:
return list(map(result.__getitem__, reference))
T = typing.TypeVar("T")
DataType = typing.TypeVar("DataType")
def permute_point_data(data: typing.List[T]) -> typing.Iterable[T]:
def permute_point_data(data: typing.List[DataType]) -> typing.Iterable[DataType]:
"""
Permutes the items of `data` into the reference order inferred from the coordinates.
"""
......@@ -104,7 +104,7 @@ def permute_point_data(data: typing.List[T]) -> typing.Iterable[T]:
yield data[i]
def permute_cell_data(data: typing.List[T]) -> typing.Iterable[T]:
def permute_cell_data(data: typing.List[DataType]) -> typing.Iterable[DataType]:
"""
Permutes the items of `data` into the reference order inferred from the connectivities.
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment