mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
committed by
Guido van Rossum
parent
3101768f12
commit
c05570cf00
@@ -28,13 +28,15 @@ of the stub files.
|
||||
The below is an excerpt from the types for the `datetime` module.
|
||||
|
||||
```python
|
||||
from typing import Union
|
||||
|
||||
MAXYEAR = ... # type: int
|
||||
MINYEAR = ... # type: int
|
||||
|
||||
class date(object):
|
||||
def __init__(self, year: int, month: int, day: int) -> None: ...
|
||||
@classmethod
|
||||
def fromtimestamp(cls, timestamp: int or float) -> date: ...
|
||||
def fromtimestamp(cls, timestamp: Union[int, float]) -> date: ...
|
||||
@classmethod
|
||||
def fromordinal(cls, ordinal: int) -> date: ...
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user