Skip to content

Commit 45f0a5e

Browse files
authored
Add rrule.__iter__ return type (#9828)
1 parent 8aedbda commit 45f0a5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/python-dateutil/dateutil/rrule.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22
from _typeshed import Incomplete
3-
from collections.abc import Iterable
3+
from collections.abc import Iterable, Iterator
44
from typing import Any
55
from typing_extensions import TypeAlias
66

@@ -27,7 +27,7 @@ SU: weekday
2727

2828
class rrulebase:
2929
def __init__(self, cache: bool = ...) -> None: ...
30-
def __iter__(self): ...
30+
def __iter__(self) -> Iterator[datetime.datetime]: ...
3131
def __getitem__(self, item): ...
3232
def __contains__(self, item): ...
3333
def count(self): ...

0 commit comments

Comments
 (0)