Skip to content

Conversation

@waketzheng
Copy link
Contributor

@waketzheng waketzheng commented Oct 22, 2025

Description

  1. use anyio instead of pytest-asyncio for blacksheep example tests to reduce dev dependency
  2. output of command grep -rn darglint . show that it no used, so remove it
  3. run make up to upgrade deps
  4. add PyJWT for python3.9 because of the newer version blacksheep requires it
  5. remove python_version item in the [tool.mypy] section to fix the following mypy complaint:
.venv/lib/python3.13/site-packages/pylint/checkers/deprecated.py:261: error: Pattern matching is only
supported in Python 3.10 and greater  [syntax]
            qnames = {inferred.qname(), func_name}
            ^
Found 1 error in 1 file (errors prevented further checking)

Motivation and Context

Examples of fastapi/sanic use anyio for async test, use it for blacksheep allow us to remove the pytest-asyncio

How Has This Been Tested?

make ci

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added the changelog accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 22, 2025

CodSpeed Performance Report

Merging #2013 will not alter performance

Comparing waketzheng:remove-pytest-asyncio (2f1ab09) with develop (d3100ef)

Summary

✅ 16 untouched

@waketzheng waketzheng changed the title Remove pytest asyncio refactor: use anyio instead of pytest-asyncio for blacksheep example tests Oct 22, 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