def test_deprecated_field_forward_annotation() -> None:
    """https://github.com/pydantic/pydantic/issues/11390"""

    class Model(BaseModel):
        a: "Annotated[Test, deprecated('test')]" = 2

    Test = int

    Model.model_rebuild()
    assert Model.model_fields['a'].deprecated == 'test'

    m = Model()

    pytest.warns(DeprecationWarning, lambda: m.a, match='test')
https://github.com/pydantic/pydantic/issues/11390
tests/test_deprecated_fields.py