Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Caogration authored Aug 6, 2024
1 parent 8189aea commit 6d13b9f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/paddle/base/dygraph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
TYPE_CHECKING,
Any,
Callable,
ContextManager,
Sequence,
TypeVar,
overload,
)
Expand All @@ -41,8 +39,9 @@

if TYPE_CHECKING:
from collections import OrderedDict
from collections.abc import Generator, Sequence
from contextlib import AbstractAsyncContextManager
from types import TracebackType
from typing import Generator

from typing_extensions import Self

Expand Down Expand Up @@ -299,7 +298,7 @@ def _switch_tracer_mode_guard_(


@overload
def no_grad(func: None = ...) -> ContextManager:
def no_grad(func: None = ...) -> AbstractAsyncContextManager:
...


Expand Down

0 comments on commit 6d13b9f

Please sign in to comment.