Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typing][A-7] Add type annotations for paddle/tensor/manipulation.py #65351

Merged
merged 14 commits into from
Jun 24, 2024
1 change: 1 addition & 0 deletions python/paddle/_typing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# Basic
from .basic import (
IntSequence as IntSequence,
NestedList as NestedList,
NestedNumbericSequence as NestedNumbericSequence,
NestedSequence as NestedSequence,
NestedStructure as NestedStructure,
Expand Down
1 change: 1 addition & 0 deletions python/paddle/_typing/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
_T = TypeVar("_T")

NestedSequence = Union[_T, Sequence["NestedSequence[_T]"]]
NestedList = Union[_T, List["NestedList[_T]"]]
NestedStructure = Union[
_T, Dict[str, "NestedStructure[_T]"], Sequence["NestedStructure[_T]"]
]
Expand Down
Loading