Skip to content

Commit 656ef2b

Browse files
iter
1 parent 1efe638 commit 656ef2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nncf/common/initialization/dataloader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""Interface for user-defined data usage during the compression algorithm initialization process."""
1212
from abc import ABC
1313
from abc import abstractmethod
14-
from typing import Any
14+
from typing import Any, Iterator
1515

1616
from nncf.common.utils.api_marker import api
1717

@@ -32,7 +32,7 @@ def batch_size(self) -> int:
3232
"""
3333

3434
@abstractmethod
35-
def __iter__(self) -> Any:
35+
def __iter__(self) -> Iterator[Any]:
3636
"""
3737
Creates an iterator for the elements of a custom data source.
3838
The returned iterator implements the Python Iterator protocol.

0 commit comments

Comments
 (0)