Skip to content

Commit 44e2be0

Browse files
donBarbosmingyu.park
authored andcommitted
Deprecate CGIHTTPRequestHandler (python#13658)
1 parent f0d7cca commit 44e2be0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/http/server.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import sys
66
from _typeshed import StrPath, SupportsRead, SupportsWrite
77
from collections.abc import Mapping, Sequence
88
from typing import Any, AnyStr, BinaryIO, ClassVar
9+
from typing_extensions import deprecated
910

1011
__all__ = ["HTTPServer", "ThreadingHTTPServer", "BaseHTTPRequestHandler", "SimpleHTTPRequestHandler", "CGIHTTPRequestHandler"]
1112

@@ -72,7 +73,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
7273
def guess_type(self, path: StrPath) -> str: ... # undocumented
7374

7475
def executable(path: StrPath) -> bool: ... # undocumented
75-
76+
@deprecated("Deprecated in Python 3.13; removal scheduled for Python 3.15")
7677
class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
7778
cgi_directories: list[str]
7879
have_fork: bool # undocumented

0 commit comments

Comments
 (0)