File tree 2 files changed +11
-5
lines changed
tests/stubtest_allowlists
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,17 @@ class HTTPStatus(IntEnum):
79
79
EARLY_HINTS : Literal [103 ]
80
80
IM_A_TEAPOT : Literal [418 ]
81
81
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 : ...
82
93
83
94
if sys .version_info >= (3 , 11 ):
84
95
class HTTPMethod (StrEnum ):
Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ enum.property.member
30
30
genericpath.__all__
31
31
genericpath.islink
32
32
gzip.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
38
33
http.client.HTTPConnection.get_proxy_response_headers
39
34
http.client.HTTPSConnection.__init__
40
35
imaplib.IMAP4_SSL.__init__
You can’t perform that action at this time.
0 commit comments