Skip to content

Commit 825e799

Browse files
committed
ugly implementation
1 parent c507e90 commit 825e799

File tree

4 files changed

+266
-50
lines changed

4 files changed

+266
-50
lines changed

src/trio/_core/_run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def function_with_unique_name_xyzzy() -> NoReturn:
157157

158158
@attrs.frozen
159159
class SystemClock(Clock):
160-
"aoeu"
161160
# Add a large random offset to our clock to ensure that if people
162161
# accidentally call time.perf_counter() directly or start comparing clocks
163162
# between different runs, then they'll notice the bug quickly:

src/trio/_socket.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ async def sendmsg(
727727
raise NotImplementedError
728728

729729

730-
# copy docstrings from socket.SocketType
731-
# this doesn't satisfy pyright for platform-specific objects though
730+
# copy docstrings from socket.SocketType / socket.socket
732731
for name, obj in SocketType.__dict__.items():
733732
# skip dunders and already defined docstrings
734733
if name.startswith("__") or obj.__doc__:
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
{
2+
"Darwin": [
3+
"No docstring found for class \"trio.MemoryReceiveChannel\"",
4+
"No docstring found for class \"trio._channel.MemoryReceiveChannel\"",
5+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.statistics\"",
6+
"No docstring found for class \"trio._channel.MemoryChannelStats\"",
7+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.aclose\"",
8+
"No docstring found for class \"trio.MemorySendChannel\"",
9+
"No docstring found for class \"trio._channel.MemorySendChannel\"",
10+
"No docstring found for function \"trio._channel.MemorySendChannel.statistics\"",
11+
"No docstring found for function \"trio._channel.MemorySendChannel.aclose\"",
12+
"No docstring found for class \"trio._core._run.Task\"",
13+
"No docstring found for class \"trio._socket.SocketType\"",
14+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_all\"",
15+
"No docstring found for function \"trio._highlevel_socket.SocketStream.wait_send_all_might_not_block\"",
16+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_eof\"",
17+
"No docstring found for function \"trio._highlevel_socket.SocketStream.receive_some\"",
18+
"No docstring found for function \"trio._highlevel_socket.SocketStream.aclose\"",
19+
"No docstring found for function \"trio._path.Path.absolute\"",
20+
"No docstring found for class \"trio._path.AsyncAutoWrapperType\"",
21+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_forwards\"",
22+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_wraps\"",
23+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_magic\"",
24+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_iter\"",
25+
"No docstring found for function \"trio._subprocess.HasFileno.fileno\"",
26+
"No docstring found for class \"trio._sync.AsyncContextManagerMixin\"",
27+
"No docstring found for function \"trio._sync._HasAcquireRelease.acquire\"",
28+
"No docstring found for function \"trio._sync._HasAcquireRelease.release\"",
29+
"No docstring found for class \"trio._sync._LockImpl\"",
30+
"No docstring found for class \"trio._core._local._NoValue\"",
31+
"No docstring found for class \"trio._core._local.RunVarToken\"",
32+
"No docstring found for class \"trio.lowlevel.RunVarToken\"",
33+
"No docstring found for class \"trio.lowlevel.Task\"",
34+
"No docstring found for class \"trio._core._ki.KIProtectionSignature\"",
35+
"No docstring found for function \"trio._unix_pipes.FdStream.send_all\"",
36+
"No docstring found for function \"trio._unix_pipes.FdStream.wait_send_all_might_not_block\"",
37+
"No docstring found for function \"trio._unix_pipes.FdStream.receive_some\"",
38+
"No docstring found for function \"trio._unix_pipes.FdStream.close\"",
39+
"No docstring found for function \"trio._unix_pipes.FdStream.aclose\"",
40+
"No docstring found for function \"trio._unix_pipes.FdStream.fileno\"",
41+
"No docstring found for class \"trio.socket.SocketType\"",
42+
"No docstring found for class \"trio.socket.gaierror\"",
43+
"No docstring found for class \"trio.socket.herror\"",
44+
"No docstring found for function \"trio._core._mock_clock.MockClock.start_clock\"",
45+
"No docstring found for function \"trio._core._mock_clock.MockClock.current_time\"",
46+
"No docstring found for function \"trio._core._mock_clock.MockClock.deadline_to_sleep_time\"",
47+
"trio.testing._raises_group.RaisesGroup: Type of metaclass unknown",
48+
"trio.testing._raises_group.RaisesGroup: Type of base class \"contextlib.AbstractContextManager\" is partially unknown\n\u00a0\u00a0Type argument 1 for class \"AbstractContextManager\" has partially unknown type",
49+
"trio.testing._raises_group.RaisesGroup: Type of base class unknown",
50+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.exconly\"",
51+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.errisinstance\"",
52+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.getrepr\"",
53+
"No docstring found for function \"trio.testing._raises_group.RaisesGroup.expected_type\""
54+
],
55+
"Linux": [
56+
"No docstring found for class \"trio.MemoryReceiveChannel\"",
57+
"No docstring found for class \"trio._channel.MemoryReceiveChannel\"",
58+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.statistics\"",
59+
"No docstring found for class \"trio._channel.MemoryChannelStats\"",
60+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.aclose\"",
61+
"No docstring found for class \"trio.MemorySendChannel\"",
62+
"No docstring found for class \"trio._channel.MemorySendChannel\"",
63+
"No docstring found for function \"trio._channel.MemorySendChannel.statistics\"",
64+
"No docstring found for function \"trio._channel.MemorySendChannel.aclose\"",
65+
"No docstring found for class \"trio._core._run.Task\"",
66+
"No docstring found for class \"trio._socket.SocketType\"",
67+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_all\"",
68+
"No docstring found for function \"trio._highlevel_socket.SocketStream.wait_send_all_might_not_block\"",
69+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_eof\"",
70+
"No docstring found for function \"trio._highlevel_socket.SocketStream.receive_some\"",
71+
"No docstring found for function \"trio._highlevel_socket.SocketStream.aclose\"",
72+
"No docstring found for function \"trio._path.Path.absolute\"",
73+
"No docstring found for class \"trio._path.AsyncAutoWrapperType\"",
74+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_forwards\"",
75+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_wraps\"",
76+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_magic\"",
77+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_iter\"",
78+
"No docstring found for function \"trio._subprocess.HasFileno.fileno\"",
79+
"No docstring found for class \"trio._sync.AsyncContextManagerMixin\"",
80+
"No docstring found for function \"trio._sync._HasAcquireRelease.acquire\"",
81+
"No docstring found for function \"trio._sync._HasAcquireRelease.release\"",
82+
"No docstring found for class \"trio._sync._LockImpl\"",
83+
"No docstring found for class \"trio._core._io_epoll._EpollStatistics\"",
84+
"No docstring found for class \"trio._core._local._NoValue\"",
85+
"No docstring found for class \"trio._core._local.RunVarToken\"",
86+
"No docstring found for class \"trio.lowlevel.RunVarToken\"",
87+
"No docstring found for class \"trio.lowlevel.Task\"",
88+
"No docstring found for class \"trio._core._ki.KIProtectionSignature\"",
89+
"No docstring found for function \"trio._unix_pipes.FdStream.send_all\"",
90+
"No docstring found for function \"trio._unix_pipes.FdStream.wait_send_all_might_not_block\"",
91+
"No docstring found for function \"trio._unix_pipes.FdStream.receive_some\"",
92+
"No docstring found for function \"trio._unix_pipes.FdStream.close\"",
93+
"No docstring found for function \"trio._unix_pipes.FdStream.aclose\"",
94+
"No docstring found for function \"trio._unix_pipes.FdStream.fileno\"",
95+
"No docstring found for class \"trio.socket.SocketType\"",
96+
"No docstring found for class \"trio.socket.gaierror\"",
97+
"No docstring found for class \"trio.socket.herror\"",
98+
"No docstring found for function \"trio._core._mock_clock.MockClock.start_clock\"",
99+
"No docstring found for function \"trio._core._mock_clock.MockClock.current_time\"",
100+
"No docstring found for function \"trio._core._mock_clock.MockClock.deadline_to_sleep_time\"",
101+
"trio.testing._raises_group.RaisesGroup: Type of metaclass unknown",
102+
"trio.testing._raises_group.RaisesGroup: Type of base class \"contextlib.AbstractContextManager\" is partially unknown\n\u00a0\u00a0Type argument 1 for class \"AbstractContextManager\" has partially unknown type",
103+
"trio.testing._raises_group.RaisesGroup: Type of base class unknown",
104+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.exconly\"",
105+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.errisinstance\"",
106+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.getrepr\"",
107+
"No docstring found for function \"trio.testing._raises_group.RaisesGroup.expected_type\""
108+
],
109+
"Windows": [
110+
"No docstring found for class \"trio.MemoryReceiveChannel\"",
111+
"No docstring found for class \"trio._channel.MemoryReceiveChannel\"",
112+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.statistics\"",
113+
"No docstring found for class \"trio._channel.MemoryChannelStats\"",
114+
"No docstring found for function \"trio._channel.MemoryReceiveChannel.aclose\"",
115+
"No docstring found for class \"trio.MemorySendChannel\"",
116+
"No docstring found for class \"trio._channel.MemorySendChannel\"",
117+
"No docstring found for function \"trio._channel.MemorySendChannel.statistics\"",
118+
"No docstring found for function \"trio._channel.MemorySendChannel.aclose\"",
119+
"No docstring found for class \"trio._core._run.Task\"",
120+
"No docstring found for class \"trio._socket.SocketType\"",
121+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_all\"",
122+
"No docstring found for function \"trio._highlevel_socket.SocketStream.wait_send_all_might_not_block\"",
123+
"No docstring found for function \"trio._highlevel_socket.SocketStream.send_eof\"",
124+
"No docstring found for function \"trio._highlevel_socket.SocketStream.receive_some\"",
125+
"No docstring found for function \"trio._highlevel_socket.SocketStream.aclose\"",
126+
"No docstring found for function \"trio._path.Path.absolute\"",
127+
"No docstring found for class \"trio._path.AsyncAutoWrapperType\"",
128+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_forwards\"",
129+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_wraps\"",
130+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_magic\"",
131+
"No docstring found for function \"trio._path.AsyncAutoWrapperType.generate_iter\"",
132+
"No docstring found for function \"trio._subprocess.HasFileno.fileno\"",
133+
"No docstring found for class \"trio._sync.AsyncContextManagerMixin\"",
134+
"No docstring found for function \"trio._sync._HasAcquireRelease.acquire\"",
135+
"No docstring found for function \"trio._sync._HasAcquireRelease.release\"",
136+
"No docstring found for class \"trio._sync._LockImpl\"",
137+
"No docstring found for class \"trio._core._local._NoValue\"",
138+
"No docstring found for class \"trio._core._local.RunVarToken\"",
139+
"No docstring found for class \"trio.lowlevel.RunVarToken\"",
140+
"No docstring found for class \"trio.lowlevel.Task\"",
141+
"No docstring found for class \"trio._core._ki.KIProtectionSignature\"",
142+
"No docstring found for class \"trio.socket.SocketType\"",
143+
"No docstring found for class \"trio.socket.gaierror\"",
144+
"No docstring found for class \"trio.socket.herror\"",
145+
"No docstring found for function \"trio._core._mock_clock.MockClock.start_clock\"",
146+
"No docstring found for function \"trio._core._mock_clock.MockClock.current_time\"",
147+
"No docstring found for function \"trio._core._mock_clock.MockClock.deadline_to_sleep_time\"",
148+
"trio.testing._raises_group.RaisesGroup: Type of metaclass unknown",
149+
"trio.testing._raises_group.RaisesGroup: Type of base class \"contextlib.AbstractContextManager\" is partially unknown\n\u00a0\u00a0Type argument 1 for class \"AbstractContextManager\" has partially unknown type",
150+
"trio.testing._raises_group.RaisesGroup: Type of base class unknown",
151+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.exconly\"",
152+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.errisinstance\"",
153+
"No docstring found for function \"trio.testing._raises_group._ExceptionInfo.getrepr\"",
154+
"No docstring found for function \"trio.testing._raises_group.RaisesGroup.expected_type\""
155+
]
156+
}

0 commit comments

Comments
 (0)