Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_stringified_annotation (0.23 seconds)

  1. tests/test_stringified_annotation_dependency_py314.py

    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    
    from .utils import needs_py314
    
    if TYPE_CHECKING:  # pragma: no cover
    
        class DummyUser: ...
    
    
    @needs_py314
    def test_stringified_annotation():
        # python3.14: Use forward reference without "from __future__ import annotations"
        async def get_current_user() -> DummyUser | None:
            return None
    
        app = FastAPI()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:49:44 GMT 2026
    - 711 bytes
    - Click Count (0)
Back to Top