third-party: make some protocol params pos-only (#11006)

This commit is contained in:
Jelle Zijlstra
2023-11-09 22:40:10 -08:00
committed by GitHub
parent 4deef7550f
commit 0c7bdffa90
7 changed files with 11 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ from bleach import _HTMLAttrKey
_HTMLAttrs: TypeAlias = MutableMapping[_HTMLAttrKey, str]
class _Callback(Protocol): # noqa: Y046
def __call__(self, attrs: _HTMLAttrs, new: bool = ...) -> _HTMLAttrs: ...
def __call__(self, __attrs: _HTMLAttrs, __new: bool = ...) -> _HTMLAttrs: ...
def nofollow(attrs: _HTMLAttrs, new: bool = False) -> _HTMLAttrs: ...
def target_blank(attrs: _HTMLAttrs, new: bool = False) -> _HTMLAttrs: ...