Skip to content

Commit 0ba2cc1

Browse files
authored
use type string for TYPE_CHECKING only vars
1 parent 6df6ba0 commit 0ba2cc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/paddle/_typing/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from paddle import Tensor
2424

2525
Numberic: TypeAlias = Union[int, float, complex, np.number, "Tensor"]
26-
TensorLike: TypeAlias = npt.NDArray[Any] | Tensor | Numberic
26+
TensorLike: TypeAlias = npt.NDArray[Any] | "Tensor" | Numberic
2727

2828
_T = TypeVar("_T", bound=Numberic)
2929
_SeqLevel1: TypeAlias = Sequence[_T]

0 commit comments

Comments
 (0)