File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,17 @@ class HTTPStatus(IntEnum):
7979 EARLY_HINTS : Literal [103 ]
8080 IM_A_TEAPOT : Literal [418 ]
8181 TOO_EARLY : Literal [425 ]
82+ if sys .version_info >= (3 , 12 ):
83+ @property
84+ def is_informational (self ) -> bool : ...
85+ @property
86+ def is_success (self ) -> bool : ...
87+ @property
88+ def is_redirection (self ) -> bool : ...
89+ @property
90+ def is_client_error (self ) -> bool : ...
91+ @property
92+ def is_server_error (self ) -> bool : ...
8293
8394if sys .version_info >= (3 , 11 ):
8495 class HTTPMethod (StrEnum ):
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ enum.property.member
3030genericpath.__all__
3131genericpath.islink
3232gzip.GzipFile.filename
33- http.HTTPStatus.is_client_error
34- http.HTTPStatus.is_informational
35- http.HTTPStatus.is_redirection
36- http.HTTPStatus.is_server_error
37- http.HTTPStatus.is_success
3833http.client.HTTPConnection.get_proxy_response_headers
3934http.client.HTTPSConnection.__init__
4035imaplib.IMAP4_SSL.__init__
You can’t perform that action at this time.
0 commit comments