Skip to content

add winloop support and keep unix parts in windows off-limits - #959

Closed
Vizonex wants to merge 6 commits into
agronholm:masterfrom
Vizonex:add-winloop-to-testsuite
Closed

Vizonex wants to merge 6 commits into
agronholm:masterfrom
Vizonex:add-winloop-to-testsuite

Conversation

@Vizonex

@Vizonex Vizonex commented Aug 5, 2025 •

Copy link
Copy Markdown
Contributor

Changes

  • Added winloop to test suite so that winloop can be supported when a windows user passed off a loop_factory or use_uvloop.
  • mypy kept misbehaving whenever I would go to use pre-commit since I'm using a Windows 10 system
    to program everything with so the only rational solution was to keep Unix Portions of code triggering mypy
    problems off limits because at the end of the day Windows users shouldn't even be allowed access to Unix only code.
    After seeing that I had to do this, I definitely feel inspired to write another wrapper library for making certain classes or functions that are OS Related off-limits to an end user or developer in the future.

Checklist

If this is a user-facing code change, like a bugfix or a new feature, please ensure that
you've fulfilled the following conditions (where applicable):

  • You've added tests (in tests/) added which would fail without your patch
  • You've updated the documentation (in docs/, in case of behavior changes or new
    features)
  • You've added a new changelog entry (in docs/versionhistory.rst).

If this is a trivial change, like a typo fix or a code reformatting, then you can ignore
these instructions.

Updating the changelog

If there are no entries after the last release, use **UNRELEASED** as the version.
If, say, your patch fixes issue #123, the entry should look like this:

- Fix big bad boo-boo in task groups
  (`#123 <https://github.com/agronholm/anyio/issues/123>`_; PR by @yourgithubaccount)

If there's no issue linked, just link to your pull request instead by updating the
changelog after you've created the PR.

@Vizonex

Vizonex commented Aug 5, 2025

Copy link
Copy Markdown
Contributor Author

@agronholm I'm going to close this and redo it due to some bad configurations I apologize for these mistakes.

@Vizonex Vizonex closed this Aug 5, 2025
Vizonex added a commit to Vizonex/anyio that referenced this pull request Aug 19, 2025
agronholm pushed a commit to Vizonex/anyio that referenced this pull request Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant