Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
László Károlyi
7e22a9e34a
Fix datetime.strftime ( #6317 )
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2021-11-30 23:19:30 -08:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Alex Waygood
916ca06885
Correct positional-only parameters in datetime.pyi ( #6343 )
...
These are all positional-or-keyword parameters in the pure-Python implementation, but positional-only parameters in the C implementation. Thus, passing them as keyword arguments is unreliable, and will result in errors being raised in some situations.
2021-11-19 07:10:18 -08:00
Alex Waygood
f6702e3871
Improve __sub__ and __add__ for datetime and date ( #6323 )
2021-11-17 21:37:41 -08:00
Alex Waygood
7598396a6d
Simplify stub for datetime.datetime ( #6320 )
2021-11-16 19:03:46 +01:00
Alex Waygood
10c9d8cfce
Add @final to many unsubclassable stdlib classes ( #6299 )
2021-11-15 14:45:24 +01:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Ilya Konstantinov
2255a6fdc8
datetime: add timedelta.__bool__ ( #5555 )
2021-05-30 00:43:33 -07:00
scaramallion
af33b09bf6
Use __new__ for datetime.timedelta ( #5532 )
2021-05-26 11:05:26 +02:00
scaramallion
a32d24cae0
Use __new__ for datetime.time ( #5530 )
2021-05-26 11:00:37 +03:00
Sebastian Rittau
841a365284
Remove compatibility aliases ( #5464 )
...
* Remove compatibility aliases
Remove a few instances of Text
Use aliases from _typeshed
* Remove unused imports
2021-05-15 20:49:20 +03:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
Arie Bovenberg
96ad09c559
fix date.isocalendar() to return namedtuple on py39+ ( #5302 )
2021-05-02 06:39:11 -07:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00