We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d2b9df commit 2ea26f7Copy full SHA for 2ea26f7
stubs/str2bool/METADATA.toml
@@ -0,0 +1,2 @@
1
+version = "1.1"
2
+upstream_repository = "https://github.com/symonsoft/str2bool"
stubs/str2bool/str2bool/__init__.pyi
@@ -0,0 +1,7 @@
+from typing import Literal, overload
+
3
+@overload
4
+def str2bool(value: str, raise_exc: Literal[True]) -> bool: ...
5
6
+def str2bool(value: str, raise_exc: bool = False) -> bool | None: ...
7
+def str2bool_exc(value: str) -> bool: ...
0 commit comments