Files
openide/python/testData/codeInsight/controlflow/FunctionAnnotationsAndParameterDefaultsAreExcludedFromItsGraph.py
Mikhail Golubev caf1082077 [python] Remove instructions for parameter defaults and return type annotations from functions CFG
Both of these are evaluated in the outer scope, e.g., in a scope of a containing class or a module,
with the corresponding instructions already processed there, and were duplicated in the CFG
of function bodies.

GitOrigin-RevId: 4460cbef6446a311f0ab15ffe3407bfbb73286e2
2023-10-16 23:42:44 +00:00

2 lines
47 B
Python

def f(x: int = int()) -> str:
return f'{x}'