mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-04-05 23:41:34 +08:00
This is more faithful to the implementation: https://github.com/python/cpython/blob/3.5/Lib/datetime.py. When these classes define __init__, pytype has trouble type-checking classes that inherit from datetime.datetime (done in, e.g., the third party datetime_tz library) because it gets confused about what arguments the constructor expects.