Skip to content

Commit 6defafa

Browse files
committed
Use Generator instead of Iterator
1 parent ea720c0 commit 6defafa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/tensorflow/tensorflow/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import abc
22
from _typeshed import Incomplete, Unused
33
from abc import ABC, ABCMeta, abstractmethod
44
from builtins import bool as _bool
5-
from collections.abc import Callable, Iterable, Iterator, Sequence
5+
from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
66
from contextlib import contextmanager
77
from enum import Enum
88
from types import TracebackType
9-
from typing import Any, Generator, Generic, NoReturn, TypeVar, overload
9+
from typing import Any, Generic, NoReturn, TypeVar, overload
1010
from typing_extensions import ParamSpec, Self
1111

1212
from google.protobuf.message import Message

stubs/tensorflow/tensorflow/summary.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import abc
22
from _typeshed import Incomplete
3-
from collections.abc import Callable
3+
from collections.abc import Callable, Generator
44
from contextlib import AbstractContextManager, contextmanager
5-
from typing import Generator, Literal
5+
from typing import Literal
66
from typing_extensions import Self
77

88
import tensorflow as tf

0 commit comments

Comments
 (0)