Skip to content

Commit 16f536d

Browse files
committed
fixes for stubtest
1 parent a92d3ca commit 16f536d

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

cheroot/server.pyi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
from typing import Any
22

3+
__all__ = (
4+
'ChunkedRFile',
5+
'DropUnderscoreHeaderReader',
6+
'Gateway',
7+
'HTTPConnection',
8+
'HTTPRequest',
9+
'HTTPServer',
10+
'HeaderReader',
11+
'KnownLengthRFile',
12+
'SizeCheckWrapper',
13+
'get_ssl_adapter_class',
14+
)
15+
316
class HeaderReader:
417
def __call__(self, rfile, hdict: Any | None = ...): ...
518

cheroot/workers/threadpool.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import threading
22
from typing import Any
33

4+
__all__ = ('ThreadPool', 'WorkerThread')
5+
46
class TrueyZero:
57
def __add__(self, other): ...
68
def __radd__(self, other): ...

stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ cheroot.ssl.pyopenssl.SSLConnection.want_read
3535
cheroot.ssl.pyopenssl.SSLConnection.want_write
3636
cheroot.ssl.pyopenssl.SSLConnection.write
3737

38-
# false positives (https://github.com/python/mypy/issues/11843)
39-
cheroot.connections.IS_WINDOWS
40-
4138
# suppress is both a function and class
4239
cheroot._compat.suppress
4340

0 commit comments

Comments
 (0)