Add typing for werkzeug.utils.secure_filename (#4308)

This commit is contained in:
Jürgen Gmach
2020-07-03 15:08:03 +02:00
committed by GitHub
parent ee44a5c323
commit 92f91ddfe8

View File

@@ -1,4 +1,4 @@
from typing import Any, Optional, Type, TypeVar, overload
from typing import Any, Optional, Text, Type, TypeVar, overload
from werkzeug._internal import _DictAccessorProperty
from werkzeug.wrappers import Response
@@ -29,7 +29,7 @@ xhtml: Any
def get_content_type(mimetype, charset): ...
def format_string(string, context): ...
def secure_filename(filename): ...
def secure_filename(filename: Text) -> Text: ...
def escape(s, quote: Optional[Any] = ...): ...
def unescape(s): ...