stdlib: Audit Callable[<parameters>, None] annotations (#8187)

This commit is contained in:
Alex Waygood
2022-06-27 07:08:28 +01:00
committed by GitHub
parent 0178a0e742
commit 8b3b6bf7cd
21 changed files with 59 additions and 66 deletions

View File

@@ -10,7 +10,7 @@ class MIMEApplication(MIMENonMultipart):
self,
_data: str | bytes,
_subtype: str = ...,
_encoder: Callable[[MIMEApplication], None] = ...,
_encoder: Callable[[MIMEApplication], object] = ...,
*,
policy: Policy | None = ...,
**_params: _ParamsType,

View File

@@ -10,7 +10,7 @@ class MIMEAudio(MIMENonMultipart):
self,
_audiodata: str | bytes,
_subtype: str | None = ...,
_encoder: Callable[[MIMEAudio], None] = ...,
_encoder: Callable[[MIMEAudio], object] = ...,
*,
policy: Policy | None = ...,
**_params: _ParamsType,

View File

@@ -10,7 +10,7 @@ class MIMEImage(MIMENonMultipart):
self,
_imagedata: str | bytes,
_subtype: str | None = ...,
_encoder: Callable[[MIMEImage], None] = ...,
_encoder: Callable[[MIMEImage], object] = ...,
*,
policy: Policy | None = ...,
**_params: _ParamsType,