Repository: tiangolo/fastapi (branch: master)
Commit date: 2023-12-15T00:58:27Z

Workflow file: .github/workflows/test.yml (Test)
name: Test

on:
  push:
    branches:
      - master
  pull_request:
    types:
      - opened
      - synchronize

jobs:
  lint:
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    steps:
      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"
      - uses: actions/checkout@v4
      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.11"
          # Issue ref: https://github.com/actions/setup-python/issues/436
          # cache: "pip"
          # cache-dependency-path: pyproject.toml
      - uses: actions/cache@v3
        id: cache
        with:
          path: ${{ env.pythonLocation }}
          key: ${{ runner.os }}-python-${{ env.pythonLocation }}-pydantic-v2-${{ hashFiles('pyproject.toml', 'requirements-tests.txt', 'requirements-docs-tests.txt') }}-test-v07
      - name: Install Dependencies
        if: steps.cache.outputs.cache-hit != 'true'
        run: pip install -r requirements-tests.txt
      - name: Install Pydantic v2
        run: pip install "pydantic>=2.0.2,<3.0.0"
      - name: Lint
        run: bash scripts/lint.sh

  test:
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    strategy:
      matrix:
        python-version: ["3.8", "3.9", "3.10", "3.11"]
        pydantic-version: ["pydantic-v1", "pydantic-v2"]
      fail-fast: false
    steps:
      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"
      - uses: actions/checkout@v4
      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: ${{ matrix.python-version }}
          # Issue ref: https://github.com/actions/setup-python/issues/436
          # cache: "pip"
          # cache-dependency-path: pyproject.toml
      - uses: actions/cache@v3
        id: cache
        with:
          path: ${{ env.pythonLocation }}
          key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ matrix.pydantic-version }}-${{ hashFiles('pyproject.toml', 'requirements-tests.txt', 'requirements-docs-tests.txt') }}-test-v07
      - name: Install Dependencies
        if: steps.cache.outputs.cache-hit != 'true'
        run: pip install -r requirements-tests.txt
      - name: Install Pydantic v1
        if: matrix.pydantic-version == 'pydantic-v1'
        run: pip install "pydantic>=1.10.0,<2.0.0"
      - name: Install Pydantic v2
        if: matrix.pydantic-version == 'pydantic-v2'
        run: pip install "pydantic>=2.0.2,<3.0.0"
      - run: mkdir coverage
      - name: Test
        run: bash scripts/test.sh
        env:
          COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
          CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
      - name: Store coverage files
        uses: actions/upload-artifact@v3
        with:
          name: coverage
          path: coverage

  coverage-combine:
    needs: [test]
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    steps:
      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v4
        with:
          python-version: '3.8'
          # Issue ref: https://github.com/actions/setup-python/issues/436
          # cache: "pip"
          # cache-dependency-path: pyproject.toml
      - name: Get coverage files
        uses: actions/download-artifact@v3
        with:
          name: coverage
          path: coverage
      - run: pip install coverage[toml]
      - run: ls -la coverage
      - run: coverage combine coverage
      - run: coverage report
      - run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
      - name: Store coverage HTML
        uses: actions/upload-artifact@v3
        with:
          name: coverage-html
          path: htmlcov

  # https://github.com/marketplace/actions/alls-green#why
  check:  # This job does nothing and is only used for the branch protection
    if: always()
    needs:
      - coverage-combine
    runs-on: ubuntu-latest
    services:
      pypi_wayback:
        image: ghcr.io/waleko/pypi-wayback
        ports:
          - 8629:8080
    steps:
      - name: Dump GitHub context
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"
      - name: Decide whether the needed jobs succeeded or failed
        uses: re-actors/alls-green@release/v1
        with:
          jobs: ${{ toJSON(needs) }}

env:
  PIP_INDEX_URL: http://localhost:8629/2023-12-15
  UV_INDEX_URL: http://localhost:8629/2023-12-15


Failed build logs:
step_name: lint/8_Lint.txt
log: ##[group]Run bash scripts/lint.sh
[36;1mbash scripts/lint.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
##[endgroup]
+ mypy fastapi
fastapi/dependencies/utils.py:120: error: "Callable[..., Any]" has no attribute "model_fields"  [attr-defined]
fastapi/dependencies/utils.py:136: error: "Callable[..., Any]" has no attribute "model_fields"  [attr-defined]
Found 2 errors in 1 file (checked 43 source files)
##[error]Process completed with exit code 1.

step_name: test (3.8, pydantic-v1)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.8
  CONTEXT: Linux-py3.8
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 11.69s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.8, pydantic-v2)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.8.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.8
  CONTEXT: Linux-py3.8
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1014: in _gcd_import
    ???
<frozen importlib._bootstrap>:991: in _find_and_load
    ???
<frozen importlib._bootstrap>:975: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:671: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 12.36s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.9, pydantic-v1)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.9
  CONTEXT: Linux-py3.9
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 12.28s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.9, pydantic-v2)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.9.18/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.9.18/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.18/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.9
  CONTEXT: Linux-py3.9
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.9.18, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1030: in _gcd_import
    ???
<frozen importlib._bootstrap>:1007: in _find_and_load
    ???
<frozen importlib._bootstrap>:986: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:680: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 12.93s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.10, pydantic-v1)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.10
  CONTEXT: Linux-py3.10
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 13.17s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.10, pydantic-v2)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.10.13/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.13/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.13/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.10
  CONTEXT: Linux-py3.10
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.10.13, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:52: in <module>
    async def get_callable_dependency(value: str = Depends(callable_dependency)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:19: in <module>
    async def main_depends(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:20: in <module>
    def foo_handler(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:21: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:22: in <module>
    async def send_notification(
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:15: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:16: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:19: in <module>
    async def read_items(commons: CommonQueryParams = Depends()):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:20: in <module>
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:16: in <module>
    async def read_items(commons: dict = Depends(common_parameters)):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:17: in <module>
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:77: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1050: in _gcd_import
    ???
<frozen importlib._bootstrap>:1027: in _find_and_load
    ???
<frozen importlib._bootstrap>:1006: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:688: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:78: in <module>
    async def websocket_endpoint(
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 13.39s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.11, pydantic-v1)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.11
  CONTEXT: Linux-py3.11
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:51: in <module>
    @app.get("/callable-dependency")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:18: in <module>
    @app.get("/main-depends/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:19: in <module>
    @app.get("/foo")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:20: in <module>
    @app.post("/send-notification/{email}")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:21: in <module>
    @app.post("/send-notification/{email}")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:14: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:15: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:18: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:19: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:15: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:16: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:76: in <module>
    @app.websocket("/items/{item_id}/ws")
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:77: in <module>
    @app.websocket("/items/{item_id}/ws")
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 12.11s ==============================
##[error]Process completed with exit code 2.

step_name: test (3.11, pydantic-v2)/10_Test.txt
log: ##[group]Run bash scripts/test.sh
[36;1mbash scripts/test.sh[0m
shell: /usr/bin/bash -e {0}
env:
  pythonLocation: /opt/hostedtoolcache/Python/3.11.7/x64
  PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib/pkgconfig
  Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.7/x64
  LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.7/x64/lib
  COVERAGE_FILE: coverage/.coverage.Linux-py3.11
  CONTEXT: Linux-py3.11
##[endgroup]
+ export PYTHONPATH=./docs_src
+ PYTHONPATH=./docs_src
+ coverage run -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/runner/work/fastapi/fastapi
configfile: pyproject.toml
plugins: anyio-3.7.1
collected 1943 items / 13 errors

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_dependency_class.py ________________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_class.py:51: in <module>
    @app.get("/callable-dependency")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'CallableDependency' object has no attribute 'model_fields'
_____________ ERROR collecting tests/test_dependency_overrides.py ______________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_dependency_overrides.py:18: in <module>
    @app.get("/main-depends/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
________ ERROR collecting tests/test_enforce_once_required_parameter.py ________
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_enforce_once_required_parameter.py:19: in <module>
    @app.get("/foo")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002.py:6: in <module>
    from docs_src.background_tasks.tutorial002 import app
docs_src/background_tasks/tutorial002.py:20: in <module>
    @app.post("/send-notification/{email}")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_background_tasks/test_tutorial002_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_background_tasks/test_tutorial002_an.py:6: in <module>
    from docs_src.background_tasks.tutorial002_an import app
docs_src/background_tasks/tutorial002_an.py:21: in <module>
    @app.post("/send-notification/{email}")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001.py:5: in <module>
    from docs_src.dependencies.tutorial001 import app
docs_src/dependencies/tutorial001.py:14: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial001_an.py:5: in <module>
    from docs_src.dependencies.tutorial001_an import app
docs_src/dependencies/tutorial001_an.py:15: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
__ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004.py:5: in <module>
    from docs_src.dependencies.tutorial004 import app
docs_src/dependencies/tutorial004.py:18: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_dependencies/test_tutorial004_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_dependencies/test_tutorial004_an.py:5: in <module>
    from docs_src.dependencies.tutorial004_an import app
docs_src/dependencies/tutorial004_an.py:19: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001.py:1: in <module>
    from docs_src.dependency_testing.tutorial001 import (
docs_src/dependency_testing/tutorial001.py:15: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py _
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py:1: in <module>
    from docs_src.dependency_testing.tutorial001_an import (
docs_src/dependency_testing/tutorial001_an.py:16: in <module>
    @app.get("/items/")
fastapi/routing.py:921: in decorator
    self.add_api_route(
fastapi/routing.py:860: in add_api_route
    route = route_class(
fastapi/routing.py:490: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
___ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002.py ___
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002.py:5: in <module>
    from docs_src.websockets.tutorial002 import app
docs_src/websockets/tutorial002.py:76: in <module>
    @app.websocket("/items/{item_id}/ws")
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
_ ERROR collecting tests/test_tutorial/test_websockets/test_tutorial002_an.py __
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:531: in collect
    self._inject_setup_module_fixture()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:545: in _inject_setup_module_fixture
    self.obj, ("setUpModule", "setup_module")
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:310: in obj
    self._obj = obj = self._getobj()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:528: in _getobj
    return self._importtestmodule()
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule
    mod = import_path(self.path, mode=importmode, root=self.config.rootpath)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path
    importlib.import_module(module_name)
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:1204: in _gcd_import
    ???
<frozen importlib._bootstrap>:1176: in _find_and_load
    ???
<frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:690: in _load_unlocked
    ???
/opt/hostedtoolcache/Python/3.11.7/x64/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
    exec(co, module.__dict__)
tests/test_tutorial/test_websockets/test_tutorial002_an.py:5: in <module>
    from docs_src.websockets.tutorial002_an import app
docs_src/websockets/tutorial002_an.py:77: in <module>
    @app.websocket("/items/{item_id}/ws")
fastapi/applications.py:1297: in decorator
    self.add_api_websocket_route(
fastapi/applications.py:1235: in add_api_websocket_route
    self.router.add_api_websocket_route(
fastapi/routing.py:964: in add_api_websocket_route
    route = APIWebSocketRoute(
fastapi/routing.py:345: in __init__
    self.dependant = get_dependant(path=self.path_format, call=self.endpoint)
fastapi/dependencies/utils.py:285: in get_dependant
    sub_dependant = get_param_sub_dependant(
fastapi/dependencies/utils.py:120: in get_param_sub_dependant
    query_param_field = depends.dependency.model_fields.get(query_param.name)
E   AttributeError: 'function' object has no attribute 'model_fields'
=========================== short test summary info ============================
ERROR tests/test_dependency_class.py - AttributeError: 'CallableDependency' object has no attribute 'model_fields'
ERROR tests/test_dependency_overrides.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_enforce_once_required_parameter.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_background_tasks/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_dependencies/test_tutorial004_an.py - AttributeError: type object 'CommonQueryParams' has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_testing_dependencies/test_tutorial001_an.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002.py - AttributeError: 'function' object has no attribute 'model_fields'
ERROR tests/test_tutorial/test_websockets/test_tutorial002_an.py - AttributeError: 'function' object has no attribute 'model_fields'
!!!!!!!!!!!!!!!!!!! Interrupted: 13 errors during collection !!!!!!!!!!!!!!!!!!!
============================= 13 errors in 12.21s ==============================
##[error]Process completed with exit code 2.

step_name: check/3_Decide whether the needed jobs succeeded or failed.txt
log: ##[group]Run re-actors/alls-green@release/v1
with:
  jobs: {
  allowed-failures: []
  allowed-skips: []
##[endgroup]
##[group]Run python -m normalize_needed_jobs_status \
[36;1mpython -m normalize_needed_jobs_status \[0m
[36;1m"$(cat << EOM[0m
[36;1m  [][0m
[36;1mEOM[0m
[36;1m)" \[0m
[36;1m"$(cat << EOM[0m
[36;1m  [][0m
[36;1mEOM[0m
[36;1m)" \[0m
[36;1m"$(cat << EOM[0m
[36;1m  {[0m
[36;1m  "coverage-combine": {[0m
[36;1m    "result": "skipped",[0m
[36;1m    "outputs": {}[0m
[36;1m  }[0m
[36;1m}[0m
[36;1mEOM[0m
[36;1m)"[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
  PYTHONPATH: /home/runner/work/_actions/re-actors/alls-green/release/v1/src
##[endgroup]
# ❌ Some of the required to succeed jobs failed 😢😢😢

📝 Job statuses:
📝 coverage-combine → ⬜ skipped [required to succeed]
##[error]Process completed with exit code 1.


Changed files:
docs/tr/docs/help-fastapi.md
fastapi/dependencies/utils.py

Fix diff:
diff --git a/docs/tr/docs/help-fastapi.md b/docs/tr/docs/help-fastapi.md
new file mode 100644
index 00000000..609bb1e3
--- /dev/null
+++ b/docs/tr/docs/help-fastapi.md
@@ -0,0 +1,263 @@
+# Yardım FastAPI - Yardım Alın
+
+**FastAPI**'yi beğendiniz mi?
+
+FastAPI'ye, diğer kullanıcılara ve yazarına yardım etmek ister misiniz?
+
+Veya **FastAPI** ile ilgili yardım almak ister misiniz?
+
+Bu konuda yardım etmenin ve yardım almanın çok basit yolları vardır (birçoğu sadece bir veya iki tıklamayı içerir).
+
+Ve yardım almak için birkaç yol daha vardır.
+
+## Bülten'e abone olun
+
+(Seyrek olarak) [**FastAPI ve arkadaşları** bültenine abone olabilirsiniz](/newsletter/){.internal-link target=_blank} ve şu konularda güncel kalabilirsiniz:
+
+* FastAPI ve arkadaşları ile ilgili haberler 🚀
+* Kılavuzlar 📝
+* Özellikler ✨
+* Kırık değişiklikler 🚨
+* İpuçları ve püf noktalar ✅
+
+## FastAPI'yi Twitter'da takip edin
+
+<a href="https://twitter.com/fastapi" class="external-link" target="_blank">**Twitter**'da @fastapi'yi takip edin</a> ve **FastAPI** ile ilgili en son haberleri alın. 🐦
+
+## GitHub'da **FastAPI**'yi yıldızlayın
+
+GitHub'ta FastAPI'yi "yıldız" ekleyerek (sağ üstteki yıldız düğmesine tıklayarak) şuradan yapabilirsiniz: <a href="https://github.com/tiangolo/fastapi" class="external-link" target="_blank">https://github.com/tiangolo/fastapi</a>. ⭐️
+
+Bir yıldız ekleyerek, diğer kullanıcılar daha kolay bulabilir ve başkaları için zaten ne kadar yararlı olduğunu görebilir.
+
+## GitHub deposunu sürümler için izleyin
+
+GitHub'da FastAPI'yi "izle" diyerek (sağ üstteki "izle" düğmesine tıklayarak) şuradan yapabilirsiniz: <a href="https://github.com/tiangolo/fastapi" class="external-link" target="_blank">https://github.com/tiangolo/fastapi</a>. 👀
+
+Orada "Yalnızca Sürümler" i seçebilirsiniz.
+
+Bunu yaparak, **FastAPI**'nin yeni bir sürümü (yeni bir versiyon) çıktığında bu konuda bildirimler (e-posta yoluyla) alırsınız.
+
+## Yazar ile iletişime geçin
+
+<a href="https://tiangolo.com" class="external-link" target="_blank">Benimle (Sebastián Ramírez / `tiangolo`)</a>, yazarla iletişime geçebilirsiniz.
+
+Şunları yapabilirsiniz:
+
+* <a href="https://github.com/tiangolo" class="external-link" target="_blank">Beni **GitHub**'da takip edin</a>.
+    * Size yardımcı olabilecek diğer Açık Kaynak projelerimi görebilirsiniz.
+    * Yeni bir Açık Kaynak projesi oluşturduğumda beni takip edin.
+* <a href="https://twitter.com/tiangolo" class="external-link" target="_blank">Beni **Twitter**'da veya <a href="https://fosstodon.org/@tiangolo" class="external-link" target="_blank">Mastodon</a>'da takip edin.
+    * FastAPI'yi nasıl kullandığınızı bana bildirin (Bunu duymayı çok severim).
+    * Duyuruları veya yeni araçları piyasaya sürdüğümde haber alın.
+    * Ayrıca <a href="https://twitter.com/fastapi" class="external-link" target="_blank">@fastapi'yi Twitter'da takip edebilirsiniz</a> (ayrı bir hesap).
+* <a href="https://www.linkedin.com/in/tiangolo/" class="external-link" target="_blank">Benimle **Linkedin**'de bağlantı kurun</a>.
+    * Duyuruları veya yeni araçları piyasaya sürdüğümde haber alın (ancak ben Twitter'ı daha sık kullanıyorum 🤷‍♂️).
+* <a href="https://dev.to/tiangolo" class="external-link" target="_blank">**Dev.to** veya <a href="https://medium.com/@tiangolo" class="external-link" target="_blank">**Medium**</a>'da yazdıklarımı okuyun (veya beni takip edin).
+    * Diğer fikirleri, makaleleri okuyun ve oluşturduğum araçlar hakkında bilgi edinin.
+    * Ben yeni bir şey yayımladığımda beni takip edin.
+
+## **FastAPI** Hakkında Tweet Atın
+
+<a href="https://twitter.com/compose/tweet?text=I'm loving @fastapi because... https://github.com/tiangolo/fastapi" class="external-link" target="_blank">**FastAPI** hakkında tweet atın</a> ve bana ve diğerlerine neden beğendiğinizi bildirin. 🎉
+
+**FastAPI**'nin nasıl kullanıldığını, bunda nelerden hoşlandığınızı, hangi proje/şirkette kullandığınızı, vb. duymaktan keyif alırım.
+
+## **FastAPI** için oy verin
+
+* <a href="https://www.slant.co/options/34241/~fastapi-review" class="external-link" target="_blank">Slant'te **FastAPI** için oy verin</a>.
+* <a href="https://alternativeto.net/software/fastapi/" class="external-link" target="_blank">AlternativeTo'da **FastAPI** için oy verin</a>.
+* <a href="https://stackshare.io/pypi-fastapi" class="external-link" target="_blank">StackShare'de **FastAPI** kullanıyorsanız belirtin</a>.
+
+## GitHub'ta diğerlerine yardım edin
+
+Diğerlerinin sorularına yardımcı olmaya çalışabilirsiniz:
+
+* <a href="https://github.com/tiangolo/fastapi/discussions/categories/questions?discussions_q=category%3AQuestions+is%3Aunanswered" class="external-link" target="_blank">GitHub Tartışmaları</a>
+* <a href="https://github.com/tiangolo/fastapi/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Aquestion+-label%3Aanswered+" class="external-link" target="_blank">GitHub Sorunları</a>
+
+Çoğu durumda, bu soruların cevaplarını zaten biliyor olabilirsiniz. 🤓
+
+Eğer birçok kişiye yardımcı oluyorsanız, resmi bir [FastAPI Uzmanı](fastapi-people.md#experts){.internal-link target=_blank} olursunuz. 🎉
+
+Unutmayın, en önemli nokta şudur: Nazik olmaya çalışın. İnsanlar hayal kırıklıklarıyla geliyorlar ve çoğu durumda en iyi şekilde sormuyorlar, ancak en iyi şekilde yardımcı olmaya çalışın. 🤗
+
+Fikir, **FastAPI** topluluğunun nazik ve misafirperver olmasıdır. Aynı zamanda, başkalarına karşı zorbalığı veya saygısız davranışları kabul etmeyin. Birbirimize bakmalıyız.
+
+---
+
+İşte başkalarına sorularında yardımcı olmanın (tartışmalarda veya sorunlarda) yolları:
+
+### Soruyu Anlayın
+
+* Soran kişinin **amacını** ve kullanım durumunu anlayabilir misiniz?
+
+* Ardından sorunun (çoğu soru) **net** olup olmadığını kontrol edin.
+
+* Birçok durumda, sorulan soru kullanıcının hayalindeki bir çözümle ilgilidir, ancak belki de daha iyi bir **alternatif çözüm** olabilir. Sorunu ve kullanım durumunu daha iyi anlayabilirseniz, belki daha iyi bir **alternatif çözüm** önerebilirsiniz.
+
+* Soruyu anlayamıyorsanız, daha fazla **detay** isteyin.
+
+### Problemi Çoğaltın
+
+Çoğu durumda ve çoğu soruda, sorunun kişinin **orijinal kodu** ile ilgili bir şey içerir.
+
+Çoğu durumda, yalnızca kodun bir parçasını kopyalarlar, ancak bu, sorunu **çoğaltmak** için yeterli değildir.
+
+* Bir <a href="https://stackoverflow.com/help/minimal-reproducible-example" class="external-link" target="_blank">minimal, çoğaltılabilir örnek</a> sağlamalarını isteyebilirsiniz, bu örneği kopyalayıp yapıştırarak yerel olarak çalıştırabilir ve gördükleri hatayı veya davranışı görebilir veya kullanım durumlarını daha iyi anlayabilirsiniz.
+
+* Çok cömert hissediyorsanız, sorunu açıklamanın sadece tanımına dayanarak **bir örnek oluşturabilirsiniz**. Ancak bunun çok zaman alabileceğini ve sorunu netleştirmek için önce sorularını açıklamalarını istemenin daha iyi olabileceğini unutmayın.
+
+### Çözümler Önerin
+
+* Soruyu anlayabildikten sonra, mümkün bir **cevap** verebilirsiniz.
+
+* Birçok durumda, **altta yatan sorun veya kullanım durumlarını** anlamak daha iyidir, çünkü yapmaya çalıştıkları şeyi yapmanın daha iyi bir yolu olabilir.
+
+### Kapatmalarını İsteyin
+
+Yanıt verirlerse, muhtemelen sorunlarını çözmüşsünüzdür, tebrikler, **bir kahramansınız**! 🦸
+
+* Şimdi, sorunlarını çözdüyse, şunları yapmalarını isteyebilirsiniz:
+
+    * GitHub Tartışmalarında: yorumu **cevap** olarak işaretleyin.
+    * GitHub Sorunlarında: sorunu **kapatın**.
+
+## GitHub deposunu izleyin
+
+GitHub'da FastAPI'yi "izleyerek" (sağ üst köşedeki "izle" düğmesine tıklayarak) şuradan yapabilirsiniz: <a href="https://github.com/tiangolo/fastapi" class="external-link" target="_blank">https://github.com/tiangolo/fastapi</a>. 👀
+
+"Yalnızca Sürümler" yerine "İzliyor" seçeneğini seçerseniz, birisi yeni bir soru veya sorun oluşturduğunda bildirim alırsınız. Ayrıca sadece yeni sorunlar, veya tartışmalar, veya PR'lar, vb. hakkında bildirim almak istediğinizi belirtebilirsiniz.
+
+Sonra onlara sorularını çözmelerinde yardımcı olmaya çalışabilirsiniz.
+
+## Sorular Sorun
+
+<a href="https://github.com/tiangolo/fastapi/discussions/new?category=questions" class="external-link" target="_blank">GitHub deposunda yeni bir soru oluşturabilirsiniz</a>, örneğin:
+
+* Bir **soru sormak** veya bir **sorun hakkında sormak**.
+* Yeni bir **özellik önermek**.
+
+**Not**: Eğer bunu yaparsanız, size de başkalarına yardımcı olmanızı isteyeceğim. 😉
+
+## İnceleme İsteklerini Gözden Geçirme
+
+Sizlere başkalarının inceleme isteklerini gözden geçirmeniz konusunda yardımcı olabilirim.
+
+Yine de lütfen nazik olmaya özen gösterin. 🤗
+
+---
+
+İşte bir inceleme isteğini değerlendirirken aklınızda bulundurmanız gerekenler ve nasıl bir inceleme yapmanız gerektiği:
+
+### Problemi Anlayın
+
+* İlk olarak, inceleme isteğinin çözmeye çalıştığı sorunu **anladığınızdan** emin olun. Bu, GitHub Tartışması veya sorunun daha uzun bir açıklaması olabilir.
+
+* Ayrıca, inceleme isteği aslında gerekli olmayabilir, çünkü sorun **farklı bir şekilde** çözülebilir. O zaman bunu önerip sormaktan çekinmeyin.
+
+### Stil Hakkında Endişelenmeyin
+
+* Commit mesajı stilleri gibi şeylerle çok fazla ilgilenmeyin, ben elle commitleri düzenleyip birleştireceğim.
+
+* Ayrıca, stil kurallarıyla ilgilenmeye gerek yok, zaten bunu kontrol eden otomatik araçlar var.
+
+Ve başka bir stil veya tutarlılık ihtiyacı varsa, doğrudan onu sormak için ya da gereken değişiklikleri yapmak için üzerine commit eklemek için size soracağım.
+
+### Kodu Kontrol Edin
+
+* Kodu kontrol edin ve okuyun, mantıklı olup olmadığını görün, **yerelde çalıştırın** ve gerçekten sorunu çözüp çözmediğini görün.
+
+* Sonra bunu yaptığınızı belirten bir **yorum bırakın**, bu şekilde gerçekten kontrol ettiğinizi bileceğim.
+
+!!! bilgi
+    Maalesef, yalnızca birkaç onay içeren PR'lara güvenemem.
+
+    Birçok kez, açıklama çekici geldiği için 3, 5 veya daha fazla onaylı PR'lar olduğunu gördüm, ancak PR'ları kontrol ettiğimde, genellikle hatalı, bir hataya sahip veya iddia ettiği sorunu çözmeyen PR'lar olduğunu fark ettim. 😅
+
+    Bu nedenle, gerçekten kodu okuyup çalıştırdığınızdan emin olmanız gerçekten önemlidir, ve bunu yaptığınızı yorumlarda belirtmeniz önemlidir. 🤓
+
+* Eğer PR basitleştirilebilecekse, bunu sormakta özgürsünüz, ancak çok ince eleyip sık dokumaya gerek yok, birçok konuda subjektif görüş olabilir (ve benim de olacaktır 🙈), bu yüzden temel konulara odaklanmanız daha iyi olacaktır.
+
+### Testler
+
+* Lütfen PR'ın **testlere** sahip olduğunu kontrol etmeme yardımcı olun.
+
+* PR'dan önce testlerin **başarısız olduğunu** kontrol edin. 🚨
+
+* Sonra PR'dan sonra testlerin **başarılı olduğunu** kontrol edin. ✅
+
+* Birçok PR'ın testlere sahip olmadığını görüyorum, test eklemeleri için hatırlatmada bulunabilir veya hatta kendi test önerilerinizi **öneride bulunabilirsiniz**. Bu, çoğu zaman en çok zaman alan şeylerden biridir ve bu konuda yapacağınız yardım çok değerlidir.
+
+* Ardından denediğiniz şeyi belirten bir yorum bırakın, böylece kontrol ettiğinizi bileceğim. 🤓
+
+## Pull Request Oluşturun
+
+Pull Request'ler aracılığıyla kaynak koduna [katkıda bulunabilirsiniz](contributing.md){.internal-link target=_blank}, örneğin:
+
+* Belgelendirmede bulduğunuz bir yazım hatasını düzeltmek için.
+* Bu dosyayı [düzenleyerek](https://github.com/tiangolo/fastapi/edit/master/docs/en/data/external_links.yml) FastAPI hakkında oluşturduğunuz veya bulduğunuz bir makaleyi, videoyu veya podcasti paylaşmak için.
+    * İlgili bölümün başına bağlantınızı eklediğinizden emin olun.
+* [Belgeleri çevirmeme](contributing.md#translations){.internal-link target=_blank} yardımcı olmak için.
+    * Diğerlerinin oluşturduğu çevirileri gözden geçirmekte de yardımcı olabilirsiniz.
+* Yeni belge bölümleri önermek için.
+* Mevcut bir sorunu/bug'ı düzeltmek için.
+    * Test eklemeyi unutmayın.
+* Yeni bir özellik eklemek için.
+    * Test eklemeyi unutmayın.
+    * İlgiliyse belge eklemeyi unutmayın.
+
+## FastAPI'yi Destekle
+
+Bana **FastAPI'yi** destekleme konusunda yardımcı olun! 🤓
+
+Yapılacak çok iş var ve çoğu zaman bunu **SİZ** yapabilirsiniz.
+
+Şu anda yapabileceğiniz ana görevler şunlar:
+
+* [GitHub'da diğerlerine sorularınızda yardımcı olun](#help-others-with-questions-in-github){.internal-link target=_blank} (yukarıdaki bölüme bakın).
+* [Pull Request'leri İnceleyin](#review-pull-requests){.internal-link target=_blank} (yukarıdaki bölüme bakın).
+
+Bu iki görev, zamanın çoğunu **tüketen işlerdir**. FastAPI'nin sürdürülmesinin ana işidir.
+
+Eğer bunlarda bana yardımcı olabilirseniz, **FastAPI'yi sürdürmeme yardımcı oluyorsunuz** ve onun **daha hızlı ve daha iyi bir şekilde ilerlemesini** sağlıyorsunuz. 🚀
+
+## Sohbete Katılın
+
+👥 <a href="https://discord.gg/VQjSZaeJmf" class="external-link" target="_blank">Discord sohbet sunucusuna</a> katılın 👥 ve FastAPI topluluğundaki diğer insanlarla tanışın.
+
+!!! ipucu
+    Sorularınız için [GitHub Tartışmaları'nda](https://github.com/tiangolo/fastapi/discussions/new?category=questions) sorun, [FastAPI Uzmanları](fastapi-people.md#experts){.internal-link target=_blank} tarafından çok daha iyi bir yardım alma şansınız vardır.
+
+    Sohbeti sadece diğer genel konuşmalar için kullanın.
+
+### Sohbeti Sorular İçin Kullanmayın
+
+Sohbetlerin daha "serbest konuşma" sağlamasının yanı sıra, soruların daha genel olması ve daha zor cevaplanması muhtemeldir, bu nedenle cevap alamayabilirsiniz.
+
+GitHub'ta şablon, doğru soruyu yazmanızı sağlayarak iyi bir cevap almanızı veya sorunu kendiniz çözmenizi sağlar. Ve GitHub'da her zaman her şeye yanıt verdiğimden emin olabilirim, hatta biraz zaman alsa bile. Bu tür sohbet sistemlerinde kişisel olarak bunu yapamam. 😅
+
+Sohbet sistemlerindeki konuşmalar, GitHub'daki kadar kolayca aranamaz, bu nedenle sorular ve cevaplar konuşmada kaybolabilir. Ve sadece GitHub'takiler [FastAPI Uzmanı](fastapi-people.md#experts){.internal-link target=_blank} sayılabilir, bu nedenle muhtemelen GitHub'ta daha fazla ilgi göreceksiniz.
+
+Diğer taraftan, sohbet sistemlerinde binlerce kullanıcı olduğu için neredeyse her zaman konuşacak birini bulma şansınız yüksektir. 😄
+
+## Yazarı Sponsorla
+
+Ayrıca yazarı (beni) <a href="https://github.com/sponsors/tiangolo" class="external-link" target="_blank">GitHub sponsors</a> üzerinden maddi olarak destekleyebilirsiniz.
+
+Oradan bana bir kahve alabilirsiniz ☕️, teşekkür etmek için. 😄
+
+Ayrıca FastAPI için Gümüş veya Altın sponsoru da olabilirsiniz. 🏅🎉
+
+## FastAPI'yi Güçlendiren Araçları Sponsorla
+
+Belgelerde gördüğünüz gibi, FastAPI devlerin omuzları üzerinde duruyor, Starlette ve Pydantic.
+
+Ayrıca şunları sponsorlayabilirsiniz:
+
+* <a href="https://github.com/sponsors/samuelcolvin" class="external-link" target="_blank">Samuel Colvin (Pydantic)</a>
+* <a href="https://github.com/sponsors/encode" class="external-link" target="_blank">Encode (Starlette, Uvicorn)</a>
+
+---
+
+Teşekkürler! 🚀
\ No newline at end of file
diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py
index 00b619f9..4e88410a 100644
--- a/fastapi/dependencies/utils.py
+++ b/fastapi/dependencies/utils.py
@@ -109,36 +109,20 @@ def get_param_sub_dependant(
     security_scopes: Optional[List[str]] = None,
 ) -> Dependant:
     assert depends.dependency
-    dependant = get_sub_dependant(
+    return get_sub_dependant(
         depends=depends,
         dependency=depends.dependency,
         path=path,
         name=param_name,
         security_scopes=security_scopes,
     )
-    for query_param in dependant.query_params:
-        query_param_field = depends.dependency.model_fields.get(query_param.name)
-        if query_param_field:
-            query_param.field_info.description = (
-                query_param_field.description or query_param_field.title or ""
-            )
-    return dependant
 
 
 def get_parameterless_sub_dependant(*, depends: params.Depends, path: str) -> Dependant:
     assert callable(
         depends.dependency
     ), "A parameter-less dependency must have a callable dependency"
-    dependant = get_sub_dependant(
-        depends=depends, dependency=depends.dependency, path=path
-    )
-    for query_param in dependant.query_params:
-        query_param_field = depends.dependency.model_fields.get(query_param.name)
-        if query_param_field:
-            query_param.field_info.description = (
-                query_param_field.description or query_param_field.title or ""
-            )
-    return dependant
+    return get_sub_dependant(depends=depends, dependency=depends.dependency, path=path)
 
 
 def get_sub_dependant(