mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-24 18:48:46 +08:00
Add missing third party modules (#8321)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: hauntsaninja <> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
16
stubs/pytz/pytz/lazy.pyi
Normal file
16
stubs/pytz/pytz/lazy.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Mapping as DictMixin
|
||||
|
||||
class LazyDict(DictMixin[Incomplete, Incomplete]):
|
||||
data: Incomplete
|
||||
def __getitem__(self, key): ...
|
||||
def __contains__(self, key): ...
|
||||
def __iter__(self): ...
|
||||
def __len__(self): ...
|
||||
def keys(self): ...
|
||||
|
||||
class LazyList(list[Incomplete]):
|
||||
def __new__(cls, fill_iter: Incomplete | None = ...): ...
|
||||
|
||||
class LazySet(set[Incomplete]):
|
||||
def __new__(cls, fill_iter: Incomplete | None = ...): ...
|
||||
34
stubs/pytz/pytz/reference.pyi
Normal file
34
stubs/pytz/pytz/reference.pyi
Normal file
@@ -0,0 +1,34 @@
|
||||
import datetime
|
||||
from _typeshed import Incomplete
|
||||
from datetime import tzinfo
|
||||
|
||||
from pytz import UTC as UTC
|
||||
|
||||
class FixedOffset(tzinfo):
|
||||
def __init__(self, offset, name) -> None: ...
|
||||
def utcoffset(self, dt): ...
|
||||
def tzname(self, dt): ...
|
||||
def dst(self, dt): ...
|
||||
|
||||
STDOFFSET: datetime.timedelta
|
||||
DSTOFFSET: datetime.timedelta
|
||||
|
||||
class LocalTimezone(tzinfo):
|
||||
def utcoffset(self, dt): ...
|
||||
def dst(self, dt): ...
|
||||
def tzname(self, dt): ...
|
||||
|
||||
class USTimeZone(tzinfo):
|
||||
stdoffset: Incomplete
|
||||
reprname: Incomplete
|
||||
stdname: Incomplete
|
||||
dstname: Incomplete
|
||||
def __init__(self, hours, reprname, stdname, dstname) -> None: ...
|
||||
def tzname(self, dt): ...
|
||||
def utcoffset(self, dt): ...
|
||||
def dst(self, dt): ...
|
||||
|
||||
Eastern: USTimeZone
|
||||
Central: USTimeZone
|
||||
Mountain: USTimeZone
|
||||
Pacific: USTimeZone
|
||||
1
stubs/pytz/pytz/tzfile.pyi
Normal file
1
stubs/pytz/pytz/tzfile.pyi
Normal file
@@ -0,0 +1 @@
|
||||
def build_tzinfo(zone, fp): ...
|
||||
Reference in New Issue
Block a user