Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TimeField
  • Loading branch information
trim21 committed Jul 18, 2020
commit 60c97bc7fb2d4297d41c3a71b1193345a80bb8e9
26 changes: 13 additions & 13 deletions third_party/2and3/peewee.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ class DateTimeField(_BaseFormattedField):
formats: ClassVar[List[str]]
def adapt(self, value: str) -> datetime.datetime: ...
def to_timestamp(self) -> int: ...
def truncate(self, part: Any) -> str: ...
def truncate(self, part: str) -> Function: ...
year: int
month: int
day: int
Expand All @@ -1247,21 +1247,21 @@ class DateTimeField(_BaseFormattedField):

class DateField(_BaseFormattedField):
field_type: ClassVar[str]
formats: Any
def adapt(self, value: Any): ...
def to_timestamp(self): ...
def truncate(self, part: Any): ...
year: Any
month: Any
day: Any
formats: ClassVar[List[str]]
def adapt(self, value: Union[datetime.date, datetime.datetime, str]) -> datetime.date: ...
def to_timestamp(self) -> int: ...
def truncate(self, part: str) -> Function: ...
year: int
month: int
day: int

class TimeField(_BaseFormattedField):
field_type: ClassVar[str]
formats: Any
def adapt(self, value: Any): ...
hour: Any
minute: Any
second: Any
formats: ClassVar[List[str]]
def adapt(self, value: Any) -> datetime.time: ...
hour: int
minute: int
second: int

class TimestampField(BigIntegerField):
valid_resolutions: Any
Expand Down