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

Method extend

src/flask/sansio/blueprints.py:380–386  ·  view source on GitHub ↗
(
            bp_dict: dict[ft.AppOrBlueprintKey, list[t.Any]],
            parent_dict: dict[ft.AppOrBlueprintKey, list[t.Any]],
        )

Source from the content-addressed store, hash-verified

378
379 def _merge_blueprint_funcs(self, app: App, name: str) -> None:
380 def extend(
381 bp_dict: dict[ft.AppOrBlueprintKey, list[t.Any]],
382 parent_dict: dict[ft.AppOrBlueprintKey, list[t.Any]],
383 ) -> None:
384 for key, values in bp_dict.items():
385 key = name if key is None else f"{name}.{key}"
386 parent_dict[key].extend(values)
387
388 for key, value in self.error_handler_spec.items():
389 key = name if key is None else f"{name}.{key}"

Callers 4

__init__Method · 0.80
_split_blueprint_pathFunction · 0.80
_reset_os_environFunction · 0.80

Calls

no outgoing calls

Tested by 1

_reset_os_environFunction · 0.64