starlette/tests/test__utils.py

97 lines
2.5 KiB
Python
Raw Normal View History

import functools
from typing import Any
import pytest
from starlette._utils import get_route_path, is_async_callable
from starlette.types import Scope
def test_async_func() -> None:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
async def async_func() -> None: ... # pragma: no cover
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
def func() -> None: ... # pragma: no cover
assert is_async_callable(async_func)
assert not is_async_callable(func)
def test_async_partial() -> None:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
async def async_func(a: Any, b: Any) -> None: ... # pragma: no cover
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
def func(a: Any, b: Any) -> None: ... # pragma: no cover
partial = functools.partial(async_func, 1)
assert is_async_callable(partial)
partial = functools.partial(func, 1) # type: ignore
assert not is_async_callable(partial)
def test_async_method() -> None:
class Async:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
async def method(self) -> None: ... # pragma: no cover
class Sync:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
def method(self) -> None: ... # pragma: no cover
assert is_async_callable(Async().method)
assert not is_async_callable(Sync().method)
def test_async_object_call() -> None:
class Async:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
async def __call__(self) -> None: ... # pragma: no cover
class Sync:
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
def __call__(self) -> None: ... # pragma: no cover
assert is_async_callable(Async())
assert not is_async_callable(Sync())
def test_async_partial_object_call() -> None:
class Async:
async def __call__(
self,
a: Any,
b: Any,
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
) -> None: ... # pragma: no cover
class Sync:
def __call__(
self,
a: Any,
b: Any,
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
) -> None: ... # pragma: no cover
partial = functools.partial(Async(), 1)
assert is_async_callable(partial)
partial = functools.partial(Sync(), 1) # type: ignore
assert not is_async_callable(partial)
def test_async_nested_partial() -> None:
async def async_func(
a: Any,
b: Any,
Bump the python-packages group with 13 updates (#2632) * Bump the python-packages group with 13 updates Bumps the python-packages group with 13 updates: | Package | From | To | | --- | --- | --- | | [anyio](https://github.com/agronholm/anyio) | `4.3.0` | `4.4.0` | | [coverage](https://github.com/nedbat/coveragepy) | `7.4.3` | `7.5.4` | | [importlib-metadata](https://github.com/python/importlib_metadata) | `7.0.1` | `8.0.0` | | [mypy](https://github.com/python/mypy) | `1.8.0` | `1.10.1` | | [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.5.0` | | [typing-extensions](https://github.com/python/typing_extensions) | `4.10.0` | `4.12.2` | | [types-pyyaml](https://github.com/python/typeshed) | `6.0.12.12` | `6.0.12.20240311` | | [pytest](https://github.com/pytest-dev/pytest) | `8.0.2` | `8.2.2` | | [trio](https://github.com/python-trio/trio) | `0.24.0` | `0.25.1` | | [mkdocs](https://github.com/mkdocs/mkdocs) | `1.5.3` | `1.6.0` | | [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.12` | `9.5.27` | | [build](https://github.com/pypa/build) | `1.1.1` | `1.2.1` | | [twine](https://github.com/pypa/twine) | `5.0.0` | `5.1.1` | Updates `anyio` from 4.3.0 to 4.4.0 - [Release notes](https://github.com/agronholm/anyio/releases) - [Changelog](https://github.com/agronholm/anyio/blob/master/docs/versionhistory.rst) - [Commits](https://github.com/agronholm/anyio/compare/4.3.0...4.4.0) Updates `coverage` from 7.4.3 to 7.5.4 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.4.3...7.5.4) Updates `importlib-metadata` from 7.0.1 to 8.0.0 - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v7.0.1...v8.0.0) Updates `mypy` from 1.8.0 to 1.10.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.8.0...v1.10.1) Updates `ruff` from 0.1.15 to 0.5.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...0.5.0) Updates `typing-extensions` from 4.10.0 to 4.12.2 - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.12.2) Updates `types-pyyaml` from 6.0.12.12 to 6.0.12.20240311 - [Commits](https://github.com/python/typeshed/commits) Updates `pytest` from 8.0.2 to 8.2.2 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.2.2) Updates `trio` from 0.24.0 to 0.25.1 - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.24.0...v0.25.1) Updates `mkdocs` from 1.5.3 to 1.6.0 - [Release notes](https://github.com/mkdocs/mkdocs/releases) - [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.3...1.6.0) Updates `mkdocs-material` from 9.5.12 to 9.5.27 - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.12...9.5.27) Updates `build` from 1.1.1 to 1.2.1 - [Release notes](https://github.com/pypa/build/releases) - [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/build/compare/1.1.1...1.2.1) Updates `twine` from 5.0.0 to 5.1.1 - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/5.0.0...v5.1.1) --- updated-dependencies: - dependency-name: anyio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: importlib-metadata dependency-type: direct:production update-type: version-update:semver-major dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: typing-extensions dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: types-pyyaml dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: trio dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: build dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: twine dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] <support@github.com> * Add all changes needed for bump * Ignore ResourceWarning --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2024-07-27 09:03:46 +00:00
) -> None: ... # pragma: no cover
partial = functools.partial(async_func, b=2)
nested_partial = functools.partial(partial, a=1)
assert is_async_callable(nested_partial)
@pytest.mark.parametrize(
"scope, expected_result",
[
({"path": "/foo-123/bar", "root_path": "/foo"}, "/foo-123/bar"),
({"path": "/foo/bar", "root_path": "/foo"}, "/bar"),
({"path": "/foo", "root_path": "/foo"}, ""),
({"path": "/foo/bar", "root_path": "/bar"}, "/foo/bar"),
],
)
def test_get_route_path(scope: Scope, expected_result: str) -> None:
assert get_route_path(scope) == expected_result