summaryrefslogtreecommitdiff
path: root/src/markupsafe/_rust_speedups.pyi
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2023-01-26 07:18:50 -0800
committerDavid Lord <davidism@gmail.com>2023-01-26 07:18:50 -0800
commit45dbe44a36a2abe1b0b62b8ff9e32653fe91fb83 (patch)
tree8469681beac3314ed3d660fdb6e3dd9f5a1ced95 /src/markupsafe/_rust_speedups.pyi
parent00fea0a771ed63169933684283862e50ff3497aa (diff)
downloadmarkupsafe-rust.tar.gz
initial rust implementationrust
Diffstat (limited to 'src/markupsafe/_rust_speedups.pyi')
-rw-r--r--src/markupsafe/_rust_speedups.pyi9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/markupsafe/_rust_speedups.pyi b/src/markupsafe/_rust_speedups.pyi
new file mode 100644
index 0000000..f673240
--- /dev/null
+++ b/src/markupsafe/_rust_speedups.pyi
@@ -0,0 +1,9 @@
+from typing import Any
+from typing import Optional
+
+from . import Markup
+
+def escape(s: Any) -> Markup: ...
+def escape_silent(s: Optional[Any]) -> Markup: ...
+def soft_str(s: Any) -> str: ...
+def soft_unicode(s: Any) -> str: ...