We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1efe638 commit 656ef2bCopy full SHA for 656ef2b
nncf/common/initialization/dataloader.py
@@ -11,7 +11,7 @@
11
"""Interface for user-defined data usage during the compression algorithm initialization process."""
12
from abc import ABC
13
from abc import abstractmethod
14
-from typing import Any
+from typing import Any, Iterator
15
16
from nncf.common.utils.api_marker import api
17
@@ -32,7 +32,7 @@ def batch_size(self) -> int:
32
"""
33
34
@abstractmethod
35
- def __iter__(self) -> Any:
+ def __iter__(self) -> Iterator[Any]:
36
37
Creates an iterator for the elements of a custom data source.
38
The returned iterator implements the Python Iterator protocol.
0 commit comments