Skip to content

Commit

Permalink
TYP,MAINT: Add a missing explicit Any parameter to the `npt.ArrayLi…
Browse files Browse the repository at this point in the history
…ke` definition
  • Loading branch information
BvB93 authored and charris committed Feb 2, 2023
1 parent 2433fe5 commit ccc0032
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/_typing/_array_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# NOTE: Import `Sequence` from `typing` as we it is needed for a type-alias,
# not an annotation
import sys
from collections.abc import Collection, Callable
from typing import Any, Sequence, Protocol, Union, TypeVar, runtime_checkable
from numpy import (
Expand Down Expand Up @@ -83,7 +84,7 @@ def __array_function__(
#
# https://github.com/python/typing/issues/593
ArrayLike = _DualArrayLike[
dtype,
dtype if sys.version_info[:2] < (3, 9) else dtype[Any],
Union[bool, int, float, complex, str, bytes],
]

Expand Down

0 comments on commit ccc0032

Please sign in to comment.