PY-37362 PY-27142 Add infer types of decorated methods

Now we can infer decorated method's type based on the type or
type hints of their decorators. It is possible to use several
decorators on the method.

GitOrigin-RevId: 22f934ab5be9cb49a4ae65cbd72e17a7d1505778
This commit is contained in:
Mikhail Khorkov
2021-02-08 08:21:27 +00:00
committed by intellij-monorepo-bot
parent 9f01660411
commit 28ff3568f3
21 changed files with 598 additions and 27 deletions
@@ -410,6 +410,7 @@
<dialectsTokenSetContributor implementation="com.jetbrains.python.PythonTokenSetContributor"/>
<typeProvider implementation="com.jetbrains.python.psi.types.PyCollectionTypeByModificationsProvider" order="last"/>
<typeProvider implementation="com.jetbrains.python.codeInsight.decorator.PyDecoratedFunctionTypeProvider"/>
<!-- typing -->