Commit Graph

48 Commits

Author SHA1 Message Date
Konstantin Baikov
633a4d73f2 Use union instead of overloads in dateutil (#13184) 2024-12-05 20:17:22 +01:00
Sebastian Rittau
8acc85dbab dateutil: Enable failing test (#11612) 2024-10-02 16:39:30 -07:00
Gareth Rees
f4da13bfec [python-dateutil] Add dateutil.parser.UnknownTimezoneWarning. (#12620) 2024-09-05 13:18:31 +02:00
Frazer McLean
c5ba20f315 Fix types for python-dateutil's relativedelta (#12561) 2024-08-20 16:45:37 +02:00
Maico Timmerman
bd33ada0e3 python-dateutil: respect inheritance on relativedelta.__rsub__ (#11462) (#11463) 2024-03-15 17:06:54 +01:00
github-actions[bot]
5e642aa7fe [stubsabot] Bump python-dateutil to 2.9.* (#11518)
Co-authored-by: stubsabot <>
2024-03-14 21:26:29 +00:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Sebastian Rittau
afe18e95a9 Add an upstream_repository field to METADATA.toml (#10487)
Closes: #10478
2023-07-20 16:45:41 +02:00
Avasam
db0149859c Add partial_stub metadata field (#10157) 2023-05-10 17:04:18 +02:00
Alex Waygood
fe67f034f2 Various improvements to dateutil.rrule stubs (#10009) 2023-04-04 13:33:54 +01:00
Alex Waygood
6fd7e36e80 Add default values for third-party stubs beginning with 'P' (#9957) 2023-03-27 18:58:53 +01:00
Denys Zhak
45f0a5e7e4 Add rrule.__iter__ return type (#9828) 2023-03-01 18:07:34 +01:00
Alex Waygood
9b63a49f64 Re-export dateutil._common.weekday from dateutil.relativedelta (#9819) 2023-02-27 12:03:18 +00:00
Avasam
ed6748fb32 Stubtest settings: change ignore_missing_stub default to false (#9779)
If you're reading about this commit from an autogenerated changelog entry, this should have no user-visible impact on how the stubs are interpreted by a type checker; it's just an internal change to how typeshed's tests work.
2023-02-20 22:37:45 +00:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Alex Waygood
4fea314594 Replace Any with Incomplete in many places (#9558) 2023-01-18 08:48:16 +00:00
Alex Waygood
0e41136f5a python-dateutil: Add zoneinfo submodule (#9381) 2022-12-18 17:14:05 +00:00
Nikita Sobolev
9137258cf4 Add exact **kwargs types to dateutil.parser.parse (#9212)
Closes #9122
2022-11-16 07:25:19 -08:00
Nikita Sobolev
c0e9038f0d Fix and allow classes with missing metaclasses (#9136) 2022-11-08 18:13:59 +00:00
Alex Waygood
9ba68c364a dateutil: Add comment explaining the use of ABCMeta (#8911) 2022-10-17 12:46:48 +02:00
Nikita Sobolev
9c5a588078 datetime.tzinfo is abstract (#8908) 2022-10-16 16:20:31 -07:00
Alex Waygood
e3d4bdc91a Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-07-19 08:23:24 +01:00
Alex Waygood
89f4dee452 Improve several __hash__ methods (#8128) 2022-06-22 11:58:00 +01:00
Sebastian Rittau
d2728cf688 dateutil: Add dateutil.rrule.weekdays (#7968)
Closes: #7946
2022-05-27 11:15:03 +01:00
Eitan Mosenkis
f2f72d6c52 Add return type for dateutil.rrule._rrulestr.__call__. (#7868) 2022-05-18 22:57:38 +01:00
Alex Waygood
5c6178a821 Import generics from standard modules in all third-party stubs (#7791) 2022-05-07 10:35:50 +02:00
Sebastian Rittau
ff2feff7df dateutil.tz.tz: Replace IO with protocols (#7717) 2022-04-27 16:37:57 +03:00
Sebastian Rittau
98aa6d75fe Drop Python 2 support from python-dateutil (#7715) 2022-04-27 12:52:46 +03:00
Alex Waygood
b093c90a94 Use TypeAlias for type aliases where possible, part II (#7667) 2022-04-20 20:02:47 +01:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Alex Waygood
3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
Shantanu
b88a6f19cd Upgrade black version (#7089) 2022-01-30 16:27:06 -08:00
Alex Waygood
aea52b35d1 Remove nearly all __str__ and __repr__ methods from typeshed (#6968) 2022-01-20 00:45:11 +01:00
Alex Waygood
6a88d5e7ae Use _typeshed.Self in Python 2, too (#6932) 2022-01-16 14:44:51 -08:00
Alex Waygood
96c9abb058 Always use _typeshed.Self, where applicable (#6880)
* Always use `_typeshed.Self`, where applicable

* Revert changes to `google-cloud-ndb` (ambiguous)

* Remove empty line added by script

* Revert changes to `stubs/python-dateutil/dateutil/relativedelta.pyi`

* Manually add a few more that the script missed

* Improve `filelock` annotation

Source code here: 79ec7b2826/src/filelock/_api.py (L207)

* Improve `opentracing/scope` annotation

Source code here: 3e1d357a34/opentracing/scope.py (L71)

* Improve `redis/client` stub

Source code here: 15f315a496/redis/client.py (L1217)

* Improve `redis/lock` annotation

Source code here: 15f315a496/redis/lock.py (L155)

* Improve `requests/models` annotation

Source code here: d718e75383/requests/models.py (L653)
2022-01-09 19:16:19 -08:00
Joseph Young
b3a4b1f353 python-datetutil: WEEKDAYS and MONTHS can have arbitrary length tuples (#6689) 2021-12-25 10:18:38 +01:00
Sebastian Rittau
6708ffae14 Add tz{utc,offset}.fromutc() (#6360) 2021-11-23 00:33:40 -08:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Jochen Sprickerhof
b16ec5451a Annotate rruleset.rrule(rrule) argument (#6149) 2021-10-11 20:23:40 +02:00
JP Sugarbroad
d5ff0e8399 dateutil.parser: Complete the isoparser module (#5983) 2021-09-02 14:57:16 +02:00
Akuli
ce11072dbe Big diff: use lower-case list and dict (#5888) 2021-08-08 09:26:35 -07:00
Akuli
ee487304d7 Big diff: Use new "|" union syntax (#5872) 2021-08-08 11:05:21 +02:00
Shantanu
7244ea1f71 Test third party stubs with stubtest (#5615) 2021-06-13 00:17:40 +02:00
Shantanu
fc660d6d41 Move typing_extensions to stdlib (#5233)
I'm not sure what the best way to do this is. This effectively orphans
types-typing-extensions, but maybe that's not really a problem. (We can
yank the package too)

See https://github.com/python/typeshed/pull/5229#issuecomment-822234125
for some details

Co-authored-by: hauntsaninja <>
2021-04-20 21:55:48 -07:00
Eric Traut
a1f16da64e Added some missing parameter annotations and type arguments detected by pyright. (#5061)
Co-authored-by: Eric Traut <erictr@microsoft.com>
2021-02-23 19:46:53 +01: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