-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
dateutil.parser.parse() normally returns a datetime object, as in
typeshed/stubs/python-dateutil/dateutil/parser/_parser.pyi
Lines 95 to 106 in 843c1fd
| def parse( | |
| timestr: _FileOrStr, | |
| parserinfo: parserinfo | None = None, | |
| *, | |
| dayfirst: bool | None = ..., | |
| yearfirst: bool | None = ..., | |
| ignoretz: bool = ..., | |
| fuzzy: bool = ..., | |
| fuzzy_with_tokens: bool = ..., | |
| default: datetime | None = ..., | |
| tzinfos: _TzInfos | None = ..., | |
| ) -> datetime: ... |
However, dateutil.parser.parse(fuzzy_with_tokens=True) returns a tuple instead, like (datetime, tuple[str?])`.
Docs:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels