This repository has been archived by the owner on Dec 27, 2021. It is now read-only.
forked from python/typeshed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stub for pyrfc3339 (python#4564)
- Loading branch information
Showing
4 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from .generator import generate as generate | ||
from .parser import parse as parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from datetime import datetime | ||
|
||
def generate(dt: datetime, utc: bool = ..., accept_naive: bool = ..., microseconds: bool = ...) -> str: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from datetime import datetime | ||
|
||
def parse(timestamp: str, utc: bool = ..., produce_naive: bool = ...) -> datetime: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from datetime import datetime, timedelta, tzinfo | ||
from typing import Optional | ||
|
||
class FixedOffset(tzinfo): | ||
def __init__(self, hours: float, minutes: float) -> None: ... | ||
def dst(self, dt: Optional[datetime]) -> timedelta: ... | ||
def utcoffset(self, dt: Optional[datetime]) -> timedelta: ... | ||
def tzname(self, dt: Optional[datetime]) -> str: ... | ||
|
||
def timedelta_seconds(td: timedelta) -> int: ... | ||
def timezone(utcoffset: float) -> str: ... |