Skip to content

Commit

Permalink
Add a couple notes for maintainers
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Dec 17, 2024
1 parent 4ac8cc3 commit 69c70fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/http/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class HTTPStatus(IntEnum):
def phrase(self) -> str: ...
@property
def description(self) -> str: ...
# Keep these synced with the global constants in http/client.pyi.
CONTINUE = 100
SWITCHING_PROTOCOLS = 101
PROCESSING = 102
Expand Down
2 changes: 2 additions & 0 deletions stdlib/http/client.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ _HeaderValue: TypeAlias = ReadableBuffer | str | int
HTTP_PORT: int
HTTPS_PORT: int

# Keep these global constants in sync with http.HTTPStatus (http/__init__.pyi).
# They are present for backward compatibility reasons.
CONTINUE: Literal[100]
SWITCHING_PROTOCOLS: Literal[101]
PROCESSING: Literal[102]
Expand Down

0 comments on commit 69c70fe

Please sign in to comment.