mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
27 lines
372 B
Python
27 lines
372 B
Python
# python >= 3.9
|
|
|
|
from typing import Annotated
|
|
|
|
# This is just a dummy and very meaningless thing to use with to the Annotated
|
|
# type hint
|
|
class Foo:
|
|
pass
|
|
|
|
class A:
|
|
pass
|
|
|
|
|
|
def annotated_function_params(
|
|
basic: Annotated[str, Foo()],
|
|
obj: A,
|
|
annotated_obj: Annotated[A, Foo()],
|
|
):
|
|
#? str()
|
|
basic
|
|
|
|
#? A()
|
|
obj
|
|
|
|
#? A()
|
|
annotated_obj
|