|
1 | 1 | import datetime |
2 | 2 | from _typeshed import Incomplete |
3 | 3 | from collections.abc import Generator, Iterable, Iterator, Sequence |
4 | | -from typing import Final, Literal |
| 4 | +from typing import Final, Literal, overload |
5 | 5 | from typing_extensions import Self, TypeAlias |
6 | 6 |
|
7 | 7 | from ._common import weekday as weekdaybase |
@@ -174,6 +174,35 @@ class rruleset(rrulebase): |
174 | 174 | def exdate(self, exdate) -> None: ... |
175 | 175 |
|
176 | 176 | class _rrulestr: |
| 177 | + @overload |
| 178 | + def __call__( |
| 179 | + self, |
| 180 | + s: str, |
| 181 | + *, |
| 182 | + forceset: Literal[True], |
| 183 | + dtstart: datetime.date | None = None, |
| 184 | + cache: bool | None = None, |
| 185 | + unfold: bool = False, |
| 186 | + compatible: bool = False, |
| 187 | + ignoretz: bool = False, |
| 188 | + tzids=None, |
| 189 | + tzinfos=None, |
| 190 | + ) -> rruleset: ... |
| 191 | + @overload |
| 192 | + def __call__( |
| 193 | + self, |
| 194 | + s: str, |
| 195 | + *, |
| 196 | + compatible: Literal[True], |
| 197 | + dtstart: datetime.date | None = None, |
| 198 | + cache: bool | None = None, |
| 199 | + unfold: bool = False, |
| 200 | + forceset: bool = False, |
| 201 | + ignoretz: bool = False, |
| 202 | + tzids=None, |
| 203 | + tzinfos=None, |
| 204 | + ) -> rruleset: ... |
| 205 | + @overload |
177 | 206 | def __call__( |
178 | 207 | self, |
179 | 208 | s: str, |
|
0 commit comments