Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1e7080a
add types to io_windows
jakkdl Aug 17, 2023
d5d871b
add changes to gen_exports
jakkdl Aug 17, 2023
a551a15
Merge branch 'master' into type_io_windows
TeamSpen210 Aug 21, 2023
09abd49
Statically type some Windows CFFI functions
TeamSpen210 Aug 21, 2023
745c02a
This accepts any value, not bools
TeamSpen210 Aug 21, 2023
282dd81
Update some configuration
A5rocks Aug 25, 2023
a011cca
Merge remote-tracking branch 'upstream/master' into type_io_windows
A5rocks Aug 25, 2023
c847fe8
Type the stuff
A5rocks Aug 25, 2023
7729327
Update verify_types files
A5rocks Aug 26, 2023
776fbd1
CRLF -> LF
A5rocks Aug 26, 2023
70f2586
Try to fix CI warnings
A5rocks Aug 26, 2023
0a592d8
Bunch of stupid type ignores
A5rocks Aug 26, 2023
9fbb392
Update pip-compile'd files
A5rocks Aug 26, 2023
9b77c7b
Woes of working on Windows
A5rocks Aug 26, 2023
358d347
PR comments
A5rocks Aug 28, 2023
f2a87e2
Merge branch 'master' into type_io_windows
A5rocks Aug 28, 2023
cf46b8c
regen io_windows and verify_types
jakkdl Aug 29, 2023
5801c87
remove redundant Mapping import
jakkdl Aug 29, 2023
bfb3b46
Merge branch 'master' into type_io_windows
TeamSpen210 Aug 30, 2023
0e14a26
Merge branch 'master' into type_io_windows
CoolCat467 Sep 3, 2023
aca83ca
Merge branch 'master' into type_io_windows
A5rocks Sep 6, 2023
4757822
Merge branch 'master' into type_io_windows
A5rocks Sep 12, 2023
a90e4c9
Attempt to fix some type errors
A5rocks Sep 12, 2023
0737bc7
Oops; update type completeness file
A5rocks Sep 12, 2023
698776d
PR review pass 1
A5rocks Sep 13, 2023
3e8b015
Merge branch 'master' into type_io_windows
jakkdl Sep 13, 2023
001e425
Merge branch 'master' into type_io_windows
CoolCat467 Sep 22, 2023
bc9cbb6
Update `verify_types_windows.json`
CoolCat467 Sep 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ disallow_untyped_calls = false
# files not yet fully typed
[[tool.mypy.overrides]]
module = [
# 2761
"trio/_core/_generated_io_windows",
"trio/_core/_io_windows",

# internal
"trio/_windows_pipes",

Expand Down
1 change: 1 addition & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ codespell
# https://github.com/python-trio/trio/pull/654#issuecomment-420518745
mypy-extensions; implementation_name == "cpython"
typing-extensions
types-cffi; implementation_name == "cpython"

# Trio's own dependencies
cffi; os_name == "nt"
Expand Down
4 changes: 4 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ tomlkit==0.12.1
# via pylint
trustme==1.1.0
# via -r test-requirements.in
types-cffi==1.15.1.15 ; implementation_name == "cpython"
# via -r test-requirements.in
types-pyopenssl==23.2.0.2 ; implementation_name == "cpython"
# via -r test-requirements.in
types-setuptools==68.1.0.0
# via types-cffi
typing-extensions==4.7.1
# via
# -r test-requirements.in
Expand Down
38 changes: 26 additions & 12 deletions trio/_core/_generated_io_windows.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion trio/_core/_io_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

if TYPE_CHECKING:
from ._io_epoll import EpollWaiters
from ._io_windows import AFDWaiters


# Utility function shared between _io_epoll and _io_windows
def wake_all(waiters: EpollWaiters, exc: BaseException) -> None:
def wake_all(waiters: EpollWaiters | AFDWaiters, exc: BaseException) -> None:
try:
current_task = _core.current_task()
except RuntimeError:
Expand Down
Loading