| 1 | from typing import Annotated |
| 2 | |
| 3 | # This is just a dummy and very meaningless thing to use with to the Annotated |
| 4 | # type hint |
| 5 | class Foo: |
| 6 | pass |
| 7 | |
| 8 | class A: |
| 9 | pass |
| 10 | |
| 11 | |
| 12 | def annotated_function_params( |
| 13 | basic: Annotated[str, Foo()], |
| 14 | obj: A, |
| 15 | annotated_obj: Annotated[A, Foo()], |
| 16 | ): |
| 17 | #? str() |
| 18 | basic |
| 19 | |
| 20 | #? A() |
| 21 | obj |
| 22 | |
| 23 | #? A() |
| 24 | annotated_obj |