mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 23:31:05 +07:00
Namely, retain them only for function return type annotations and named parameters, since for these two PSI nodes we use getStubOrPsiChild() in getAnnotation() as a way to quickly check whether there is annotation at all. Otherwise, stubs for annotations of local variables might be stored directly in a function stub and thus falsely recognized as a type hint for its return value.
2 lines
27 B
Python
2 lines
27 B
Python
def func():
|
|
x: int = 42 |