Skip to content

Commit cbe4e9e

Browse files
committed
[gevent] Add __all__ to gevent.os
1 parent 1fbf537 commit cbe4e9e

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎stubs/gevent/@tests/stubtest_allowlist.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# TODO: missing from stub
2-
gevent.os.__all__
32
gevent.socket.__all__
43
gevent.ssl.__all__
54
gevent.subprocess.__all__

‎stubs/gevent/gevent/os.pyi‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ from typing import Literal
66

77
from gevent._types import _ChildWatcher, _Loop
88

9+
__all__ = ["tp_read", "tp_write"]
10+
11+
if sys.platform != "win32":
12+
__all__ += [
13+
"close",
14+
"fork",
15+
"fork_and_watch",
16+
"fork_gevent",
17+
"forkpty",
18+
"forkpty_and_watch",
19+
"forkpty_gevent",
20+
"make_nonblocking",
21+
"nb_read",
22+
"nb_write",
23+
"posix_spawn",
24+
"posix_spawnp",
25+
"waitpid",
26+
]
27+
928
def tp_read(fd: FileDescriptor, n: int) -> bytes: ...
1029
def tp_write(fd: FileDescriptor, buf: ReadableBuffer) -> int: ...
1130

0 commit comments

Comments
 (0)