MCPcopy
hub / github.com/pallets/flask / decorator

Method decorator

src/flask/sansio/scaffold.py:360–363  ·  view source on GitHub ↗
(f: T_route)

Source from the content-addressed store, hash-verified

358 """
359
360 def decorator(f: T_route) -> T_route:
361 endpoint = options.pop("endpoint", None)
362 self.add_url_rule(rule, endpoint, f, **options)
363 return f
364
365 return decorator
366

Callers

nothing calls this directly

Calls 3

add_url_ruleMethod · 0.95
popMethod · 0.45

Tested by

no test coverage detected