Skip to content

Commit 53457ee

Browse files
authored
fix: allow None to be used for strip_pre and warp_width params in types
1 parent add391a commit 53457ee

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

markdownify/__init__.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ def markdownify(
3232
newline_style: str = ...,
3333
strip: Union[list[str], None] = ...,
3434
strip_document: Union[str, None] = ...,
35-
strip_pre: str = ...,
35+
strip_pre: Union[str, None] = ...,
3636
strong_em_symbol: str = ...,
3737
sub_symbol: str = ...,
3838
sup_symbol: str = ...,
3939
table_infer_header: bool = ...,
4040
wrap: bool = ...,
41-
wrap_width: int = ...,
41+
wrap_width: Union[int, None] = ...,
4242
) -> str: ...
4343

4444

@@ -60,13 +60,13 @@ class MarkdownConverter:
6060
newline_style: str = ...,
6161
strip: Union[list[str], None] = ...,
6262
strip_document: Union[str, None] = ...,
63-
strip_pre: str = ...,
63+
strip_pre: Union[str, None] = ...,
6464
strong_em_symbol: str = ...,
6565
sub_symbol: str = ...,
6666
sup_symbol: str = ...,
6767
table_infer_header: bool = ...,
6868
wrap: bool = ...,
69-
wrap_width: int = ...,
69+
wrap_width: Union[int, None] = ...,
7070
) -> None:
7171
...
7272

0 commit comments

Comments
 (0)