Skip to content
Snippets Groups Projects
Commit 03f527a6 authored by Andreas Klöckner's avatar Andreas Klöckner Committed by Andreas Klöckner
Browse files

Stringify return type of flat_size_and_dtype to avoid py3.9+ type subscript

parent 6b8f1344
No related branches found
No related tags found
No related merge requests found
Pipeline #274895 passed
......@@ -774,7 +774,7 @@ def unflatten(
def flat_size_and_dtype(
ary: ArrayOrContainerT) -> Tuple[int, Optional[np.dtype[Any]]]:
ary: ArrayOrContainerT) -> "Tuple[int, Optional[np.dtype[Any]]]":
"""
:returns: a tuple ``(size, dtype)`` that would be the length and
:class:`numpy.dtype` of the one-dimensional array returned by
......
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