Skip to content

Complete bleach #13969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyrightconfig.stricter.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"stubs/Authlib",
"stubs/aws-xray-sdk",
"stubs/beautifulsoup4",
"stubs/bleach/bleach/sanitizer.pyi",
"stubs/boltons",
"stubs/braintree",
"stubs/caldav",
Expand Down
3 changes: 1 addition & 2 deletions stubs/bleach/bleach/linkifier.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import Incomplete
from collections.abc import Container, Iterable, Iterator, Sequence
from re import Pattern
from typing import Any, Final
Expand Down Expand Up @@ -59,4 +58,4 @@ class LinkifyFilter(Filter):
def handle_links(self, src_iter: Iterable[_Token]) -> Iterator[_Token]: ...
def handle_a_tag(self, token_buffer: Sequence[_Token]) -> Iterator[_Token]: ...
def extract_entities(self, token: _Token) -> Iterator[_Token]: ...
def __iter__(self) -> Iterator[Incomplete]: ...
def __iter__(self) -> Iterator[_Token]: ...
2 changes: 1 addition & 1 deletion stubs/bleach/bleach/sanitizer.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class NoCssSanitizerWarning(UserWarning): ...

# A html5lib Filter class
class _Filter(Protocol):
def __call__(self, *, source: BleachSanitizerFilter): ...
def __call__(self, *, source: BleachSanitizerFilter) -> BleachSanitizerFilter: ...

_AttributeFilter: TypeAlias = Callable[[str, str, str], bool]
_AttributeDict: TypeAlias = dict[str, list[str] | _AttributeFilter] | dict[str, list[str]] | dict[str, _AttributeFilter]
Expand Down