mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -20,10 +20,10 @@ _HeaderType: TypeAlias = Any
|
||||
_HeaderTypeParam: TypeAlias = str | Header
|
||||
|
||||
class _SupportsEncodeToPayload(Protocol):
|
||||
def encode(self, __encoding: str) -> _PayloadType | _MultipartPayloadType | _SupportsDecodeToPayload: ...
|
||||
def encode(self, encoding: str, /) -> _PayloadType | _MultipartPayloadType | _SupportsDecodeToPayload: ...
|
||||
|
||||
class _SupportsDecodeToPayload(Protocol):
|
||||
def decode(self, __encoding: str, __errors: str) -> _PayloadType | _MultipartPayloadType: ...
|
||||
def decode(self, encoding: str, errors: str, /) -> _PayloadType | _MultipartPayloadType: ...
|
||||
|
||||
class Message:
|
||||
policy: Policy # undocumented
|
||||
|
||||
Reference in New Issue
Block a user