Skip to content
Myr

Document required signature of before_first_request-decorated functions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Chris Rebert · committed by Chris Rebert · parent 6a25246 · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:flask/app.py+3 added
1256 unmodified lines
1257 def before_first_request(self, f):1258 """Registers a function to be run before the first request to this1259 instance of the application.12601261 The function will be called without any arguments and its return1262 value is ignored.12631264 .. versionadded:: 0.81265 """1266 self.before_first_request_funcs.append(f)1267 return f
656 unmodified lines