You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A variable annotated with 'date' is not compatible with a value of type 'datetime'. #2487
Activity
mvaled commentedon Sep 26, 2018
The following program is rejected by mypy:
JelleZijlstra commentedon Sep 26, 2018
There's probably some incompatible methods. Try modifying the stub to make datetime inherit from date and run
tests/mypy_test.py.We could fix this by just
# type: ignoreing the lines with any incompatible methods.Make 'datetime' a subclass of 'date'.
Make 'datetime' a subclass of 'date'.
mvaled commentedon Sep 26, 2018
@JelleZijlstra I created a PR in #2488
Make 'datetime' a subclass of 'date'. (#2488)
Make 'datetime' a subclass of 'date'. (python#2488)