Commit Graph
25 Commits
Author SHA1 Message Date
Semyon Moroz 354b33a70c [html5lib] Annotate more (#14994)
* Import `webencodings` to use `Encoding` class instead of `Protocol`
* Make `_inputstream.BufferedStream`, `filters.base.Filter`, `_utils.MethodDispatcher` generic
* Fix incorrect types in `_ihatexml.pyi`
* Add types for some attributes/methods
2025-11-14 22:04:22 +01:00
Brian Schubert 81c8fcb2e6 Mark stub-only private symbols as @type_check_only in third-party stubs (#14545) 2025-08-08 11:29:48 +02:00
David Salvisberg 2f9bd24716 Fix regression in definition of bleach.sanitizer._Filter (#14041) 2025-05-13 12:23:36 +02:00
Semyon Moroz 2a6d81b17f Complete bleach (#13969) 2025-05-11 14:42:21 +02:00
Sebastian Rittau 33de88879f Remove bare Incomplete annotations in third-party stubs (#11671) 2024-03-30 18:34:51 -07:00
Shantanu 88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
a2095002e4 Complete stubs for bleach (#9314)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Avasam <samuel.06@hotmail.com>
2024-02-21 20:03:24 +00:00
Jelle Zijlstra 0c7bdffa90 third-party: make some protocol params pos-only (#11006) 2023-11-10 07:40:10 +01:00
Sebastian Rittau af8c3a1b93 [bleach] Add html5lib_shim.Filter__init__/__iter__ (#10835)
The missing __init__ method caused `Filter` to be incompatible
with the `_Filter` protocol, preventing valid initialization of
`Cleaner` instances.

Closes: #10834
2023-10-04 17:19:26 +01:00
Alex Waygood b9fedd20ce Add defaults for third-party stubs A-D (#9952) 2023-03-27 16:49:58 +01:00
Sebastian RittauandAlex Waygood 4148a7b73e Upgrade bleach stubs for 6.0 (#9583)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-24 15:46:34 +00:00
Nikita Sobolev ce4668a132 Use Incomplete instead of Any in __getattr__ (#8903) 2022-10-15 18:54:21 +01:00
Alex Waygood 6348a58b8b Import Match and Pattern from re, not typing (#8277) 2022-07-12 15:32:48 +02: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
Sebastian Rittau 636a7e8b37 Update bleach stubs to version 5 (#7612) 2022-04-11 17:48:55 -07:00
Alex Waygood 3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
Alex Waygood 505ea72641 Never explicitly inherit from object in Python 3-only stubs (#6777) 2022-01-02 07:24:48 +01:00
Alex Waygood 8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Sebastian Rittau 978659643d Upgrade bleach version to 4 and drop Python 2 (#5897)
bleach 4 has no API changes, but dropped support for old Python
versions.
2021-08-09 07:26:30 -07: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
Sebastian Rittau 64f463172b bleach: Loosen attribute dict type (#5651)
Closes: #5650
2021-06-17 12:53:16 +02:00
Sebastian Rittau 4c3e3a68a6 Update bleach stubs (#5631) 2021-06-14 06:50:51 -07:00
Ivan LevkivskyiandIvan 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