From fe6bcffdad73fc8f683dadf1a86229fdfd3a571c Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Thu, 5 Feb 2015 12:45:59 -0800 Subject: [PATCH] Document required signature of before_first_request-decorated functions --- flask/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flask/app.py b/flask/app.py index c45d640d..467725c1 100644 --- a/flask/app.py +++ b/flask/app.py @@ -1258,6 +1258,9 @@ class Flask(_PackageBoundObject): """Registers a function to be run before the first request to this instance of the application. + The function will be called without any arguments and its return + value is ignored. + .. versionadded:: 0.8 """ self.before_first_request_funcs.append(f)