Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions str2bool/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import typing

@typing.overload
def str2bool(value: str, raise_exc: typing.Literal[False] = False) -> typing.Optional[bool]: ...

@typing.overload
def str2bool(value: str, raise_exc: typing.Literal[True]) -> bool: ...

def str2bool(value: str, raise_exc: bool = False) -> typing.Optional[bool]: ...
def str2bool_exc(value: str) -> bool: ...
Empty file added str2bool/py.typed
Empty file.