Files
openide/python/testData/resolve/ParameterAnnotationForwardReference.py
Anton Bragin bfcf22f7dc PY-28228 Resolve annotation forward references according to PEP 563
Forward references resolution implemented for annotations according to
PEP 563. Inspections fixed to respect forward references for both
annotations and pyi stubs.

PyiReferenceResolveProvider removed since its functionality is now
implemented by PyForwardReferenceResolveProvider.
2018-02-12 11:27:21 +03:00

9 lines
132 B
Python

from __future__ import annotations
class B:
def f(self, a: A) -> None:
# <ref>
pass
class A:
pass