mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 08:17:07 +08:00
* Use variable annotations * Replace default values by ellipses * Remove exceptions from function bodies * Remove superfluous comments * Remove superfluous newlines * Use Optional instead of Union[..., None] * Replace Union[int, float] by just float * Make time.pyi (Python 2) more closely resemble the Python 3 stub * Replace _TIME_TUPLE by TimeTuple * Reorder imports * time.pyi: Mark two arguments as optional, mark Unix-only function * time.pyi (Python 2): Use TimeTuple in NamedTuple and reformat This makes time.pyi more closely match the Python3 version. * Merge Python 2 and 3 versions of time.pyi * Only import SimpleNamespace on Python >= 3.3 * Remove default values from module properties * Remove Optional from strftime() and asctime() * accept2dyear was removed in Python 3.3 * Rename TimeTuple to _TimeTuple