Skip to content

Commit 6dd3808

Browse files
committed
Fix dumb typing mistake
Also make the generation script always use unix newlines, even on Windows
1 parent 6d23a83 commit 6dd3808

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/trio/_core/_generated_io_kqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def current_kqueue() -> select.kqueue:
4343

4444
def monitor_kevent(
4545
ident: int, filter: int
46-
) -> ContextManager[_channel.MemoryRecvChannel[select.kevent]]:
46+
) -> ContextManager[_channel.MemoryReceiveChannel[select.kevent]]:
4747
"""TODO: these are implemented, but are currently more of a sketch than
4848
anything real. See `#26
4949
<https://github.com/python-trio/trio/issues/26>`__.

src/trio/_core/_io_kqueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def current_kqueue(self) -> select.kqueue:
119119
@_public
120120
def monitor_kevent(
121121
self, ident: int, filter: int
122-
) -> Iterator[_channel.MemoryRecvChannel[select.kevent]]:
122+
) -> Iterator[_channel.MemoryReceiveChannel[select.kevent]]:
123123
"""TODO: these are implemented, but are currently more of a sketch than
124124
anything real. See `#26
125125
<https://github.com/python-trio/trio/issues/26>`__.

src/trio/_tools/gen_exports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def process(files: Iterable[File], *, do_test: bool) -> None:
300300
print("Generated sources are up to date.")
301301
else:
302302
for new_path, new_source in new_files.items():
303-
with open(new_path, "w", encoding="utf-8") as f:
303+
with open(new_path, "w", encoding="utf-8", newline="\n") as f:
304304
f.write(new_source)
305305
print("Regenerated sources successfully.")
306306

0 commit comments

Comments
 (0)