mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
19 lines
316 B
Python
19 lines
316 B
Python
from datetime import (
|
|
date,
|
|
datetime,
|
|
time,
|
|
timedelta,
|
|
)
|
|
from typing import Optional
|
|
|
|
|
|
def parse_date(value: str) -> Optional[date]: ...
|
|
|
|
|
|
def parse_datetime(value: str) -> datetime: ...
|
|
|
|
|
|
def parse_duration(value: str) -> Optional[timedelta]: ...
|
|
|
|
|
|
def parse_time(value: str) -> Optional[time]: ... |