mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add typing for werkzeug.utils.secure_filename (#4308)
This commit is contained in:
4
third_party/2and3/werkzeug/utils.pyi
vendored
4
third_party/2and3/werkzeug/utils.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user