Skip to content

Commit

Permalink
Document required signature of before_first_request-decorated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Feb 5, 2015
1 parent 6a25246 commit fe6bcff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flask/app.py
Expand Up @@ -1258,6 +1258,9 @@ def before_first_request(self, f):
"""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)
Expand Down

0 comments on commit fe6bcff

Please sign in to comment.