1 from typing import Any, Text, Type, TypeVar, overload
3 from werkzeug._internal import _DictAccessorProperty
4 from werkzeug.wrappers import Response
6 class cached_property(property):
11 def __init__(self, func, name: Any | None = ..., doc: Any | None = ...): ...
12 def __set__(self, obj, value): ...
13 def __get__(self, obj, type: Any | None = ...): ...
15 class environ_property(_DictAccessorProperty):
17 def lookup(self, obj): ...
19 class header_property(_DictAccessorProperty):
20 def lookup(self, obj): ...
23 def __init__(self, dialect): ...
24 def __call__(self, s): ...
25 def __getattr__(self, tag): ...
30 def get_content_type(mimetype, charset): ...
31 def format_string(string, context): ...
32 def secure_filename(filename: Text) -> Text: ...
33 def escape(s, quote: Any | None = ...): ...
36 # 'redirect' returns a werkzeug Response, unless you give it
37 # another Response type to use instead.
38 _RC = TypeVar("_RC", bound=Response)
41 def redirect(location: str, code: int = ..., Response: None = ...) -> Response: ...
43 def redirect(location: str, code: int = ..., Response: Type[_RC] = ...) -> _RC: ...
44 def append_slash_redirect(environ, code: int = ...): ...
45 def import_string(import_name, silent: bool = ...): ...
46 def find_modules(import_path, include_packages: bool = ..., recursive: bool = ...): ...
47 def validate_arguments(func, args, kwargs, drop_extra: bool = ...): ...
48 def bind_arguments(func, args, kwargs): ...
50 class ArgumentValidationError(ValueError):
54 def __init__(self, missing: Any | None = ..., extra: Any | None = ..., extra_positional: Any | None = ...): ...
56 class ImportStringError(ImportError):
59 def __init__(self, import_name, exception): ...