MCPcopy
hub / github.com/pallets/werkzeug / __init__

Method __init__

src/werkzeug/exceptions.py:865–874  ·  view source on GitHub ↗
(
        self,
        mapping: dict[int, type[HTTPException]] | None = None,
        extra: dict[int, type[HTTPException]] | None = None,
    )

Source from the content-addressed store, hash-verified

863 """
864
865 def __init__(
866 self,
867 mapping: dict[int, type[HTTPException]] | None = None,
868 extra: dict[int, type[HTTPException]] | None = None,
869 ) -> None:
870 if mapping is None:
871 mapping = default_exceptions
872 self.mapping = dict(mapping)
873 if extra is not None:
874 self.mapping.update(extra)
875
876 def __call__(
877 self, code: int | SansIOResponse, *args: t.Any, **kwargs: t.Any

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected