Sebastian Rittau and GitHub
7d56cd9a6c
Remove remaining bare Incompletes ( #11768 )
...
Enable Y065
2024-04-16 06:26:14 -07:00
Amin Alaee and GitHub
11e51bef9d
[pytz] Add BaseTzInfo private attributes ( #10733 )
2023-09-20 15:17:40 +02:00
Alex Waygood and GitHub
6fd7e36e80
Add default values for third-party stubs beginning with 'P' ( #9957 )
2023-03-27 18:58:53 +01:00
Avasam and GitHub
078c6a0958
Update Unused parameters in stubs/ ( #9704 )
...
* Update _Unused TypeAlias
* Update `object | None` params
* Replace unused `object` parameters with `Unused` alias
2023-02-21 23:52:52 -08:00
Nikita Sobolev and GitHub
b91ebd3096
Remove pytz from pyrights exclude ( #9041 )
2022-10-31 21:08:41 -07:00
4b34b345f1
Add missing third party modules ( #8321 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
Co-authored-by: hauntsaninja <>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-07-19 08:11:29 +01:00
Alex Waygood and GitHub
5c6178a821
Import generics from standard modules in all third-party stubs ( #7791 )
2022-05-07 10:35:50 +02:00
Jelle Zijlstra and GitHub
d9f1f7b81f
pytz: utcoffset only returns None if dt is None ( #7510 )
2022-03-19 08:19:09 +00:00
aimileus and GitHub
5081f684c0
Fix argument types of pytz.tzinfo.StaticTzInfo ( #7184 )
...
The argument is_dst of the functions StaticTzInfo.localize and
StaticTzInfo.normalize are ignored, and only present for compatibility with
DstTzInfo. The functions in DstTzInfo also accepts None, so for compatibility,
StaticTzInfo should accept them as well.
[^1] https://github.com/stub42/pytz/blob/2ed682a7c4079042f50975970fc4f503c8450058/src/pytz/tzinfo.py#L112
2022-02-13 07:21:30 -08:00
Sebastian Rittau and GitHub
968fd6d01d
Add abstract methods to BaseTzInfo ( #6579 )
...
While these abstract methods don't exist at runtime, all sub-classes of
BaseTzInfo implement them. It can be useful to annotate variables with
BaseTzInfo and being able to call these methods on it.
2021-12-14 14:14:21 +01:00
Jelle Zijlstra and GitHub
384e309f53
pytz: rework stubs ( #6551 )
2021-12-09 09:24:44 +01:00
Alex Waygood and GitHub
c685c2d6c6
Reduce use of deprecated typing aliases ( #6358 )
2021-11-23 10:56:43 +01:00
Akuli and GitHub
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli and GitHub
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
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