Use PEP 570 syntax in third party stubs (#11554)

This commit is contained in:
Shantanu authored and GitHub committed 2024-03-10 14:11:43 +01:00
1 parent f94bbfbcc4
commit 88fa182253
97 files changed
+625 -632

No files matched your search

+1 -1
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: ...