for example for the below code is there any tool to see the definition of the function that is decorated?
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'hello'
I tested inspect.getsource(index) but this only returns:
"@app.route('/')\ndef index():\n return 'hello'\n"