Commit Graph
22 Commits
Author SHA1 Message Date
Sebastian RittauandGitHub 977f3007b9 Remove Python 3.8 exclusive branches (#13772) 2025-04-02 12:32:50 +02:00
Sebastian RittauandGitHub b93eae52af Fix various argument of extension modules (#13651)
* Mark various positional-only arguments: These are all positional-only
  arguments in C code using the `METH_O` flag.
* Remove various `*args, **kwargs` arguments that are using the
  `METH_NOARGS` flag in C.
2025-03-18 02:22:34 +01:00
AvasamandGitHub 63e6ea8821 Enable Ruff PLE (Pylint Error) (#13305) 2025-03-04 12:11:32 +01:00
ShantanuandGitHub d9cf43c4c3 Mark pos-only __class_getitem__ args (#11970) 2024-05-18 23:27:51 +02:00
Ali HamdanandGitHub bd306f6b4c Use assignment instead of annotation in third party enums (#11957) 2024-05-18 17:31:39 +02:00
Ali HamdanandGitHub 6565e8a0a0 regex: functions do not accept any buffer for pattern (#11899) 2024-05-11 12:50:45 +02:00
Arthur BolsandGitHub 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
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
ShantanuandGitHub 88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Sebastian RittauandGitHub b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
Alex WaygoodandGitHub b69b17c3d8 Add defaults for third-party stubs Q-T (#9959) 2023-03-28 13:16:31 +02:00
Alex WaygoodandGitHub 7180d0223b Use typing_extensions.Self instead of _typeshed.Self (#9702) 2023-02-15 11:32:43 +01:00
Tom MilliganandGitHub b1ec9be66b regex: fix type signatures using Scanner (#9266) 2022-11-24 13:57:24 +01:00
Nikita SobolevandGitHub f8dfb5f725 Mark regex as completed (#9214) 2022-11-22 21:03:01 -08:00
Reuben ThomasandGitHub 708996dff0 regex: add support for RegexFlag class (#8881) 2022-10-11 17:07:09 +02:00
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 WaygoodandGitHub 3fe1f5d6c4 requests, regex: use re-exports instead of assignments in a few places (#8127) 2022-06-21 08:20:13 -07:00
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 WaygoodandGitHub 653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Joseph YoungandGitHub d3941c2463 regex stubs: Add __getitem__ method to Match (#7372) 2022-02-23 19:38:29 +01:00
Sebastian RittauandGitHub e77a66aced Update pyright (#6840) 2022-01-07 18:58:15 +02:00
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