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
DateTimeField
  • Loading branch information
trim21 committed Jul 18, 2020
commit f1fc4ec4bb0e6e847dad9b7af57dd0356977b89e
21 changes: 11 additions & 10 deletions third_party/2and3/peewee.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import decimal
import itertools
import sys
Expand Down Expand Up @@ -1233,16 +1234,16 @@ class _BaseFormattedField(Field):

class DateTimeField(_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
hour: Any
minute: Any
second: Any
formats: ClassVar[List[str]]
def adapt(self, value: str) -> datetime.datetime: ...
def to_timestamp(self) -> int: ...
def truncate(self, part: Any) -> str: ...
year: int
month: int
day: int
hour: int
minute: int
second: int

class DateField(_BaseFormattedField):
field_type: ClassVar[str]
Expand Down