Commit Graph

19 Commits

Author SHA1 Message Date
Shantanu
d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +02:00
Ali Hamdan
bd306f6b4c Use assignment instead of annotation in third party enums (#11957) 2024-05-18 17:31:39 +02:00
Ali Hamdan
6565e8a0a0 regex: functions do not accept any buffer for pattern (#11899) 2024-05-11 12:50:45 +02:00
Arthur Bols
32ab6813bc regex: improve Pattern annotations (#11862)
- Corrected types for `pos` and `endpos` arguments to `int | None = None`
- Corrected type for `timeout` argument to `float | None = None`
- Added default value `None` for `concurrent` and `timeout` parameters
- Added default value `0` for `maxsplit` parameter
- Added `partial` parameter where applicable
- Removed invalid `flags` parameter from `sub` methods
2024-05-04 19:39:35 -07:00
Eric Traut
17f1c4628a Add precise values for enum members where possible (#11299)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
2024-04-22 15:10:59 +01: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
Alex Waygood
b69b17c3d8 Add defaults for third-party stubs Q-T (#9959) 2023-03-28 13:16:31 +02:00
Alex Waygood
7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Tom Milligan
b1ec9be66b regex: fix type signatures using Scanner (#9266) 2022-11-24 13:57:24 +01:00
Nikita Sobolev
f8dfb5f725 Mark regex as completed (#9214) 2022-11-22 21:03:01 -08:00
Reuben Thomas
708996dff0 regex: add support for RegexFlag class (#8881) 2022-10-11 17:07:09 +02:00
Shantanu
d975734b8b Bump regex to 2022.6.2 (#8162)
Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
2022-06-26 08:18:01 +05:30
Alex Waygood
3fe1f5d6c4 requests, regex: use re-exports instead of assignments in a few places (#8127) 2022-06-21 08:20:13 -07:00
Jelle Zijlstra
b00b4f3447 regex: accept buffers (#7680)
Similar to #7679

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2022-05-10 15:08:36 -07:00
Alex Waygood
653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Joseph Young
d3941c2463 regex stubs: Add __getitem__ method to Match (#7372) 2022-02-23 19:38:29 +01:00
Sebastian Rittau
e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
Joseph Young
fbf5982d4d Add regex stubs (#6713)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-12-30 21:15:42 +02:00