Add Python type definitions via stub file

This commit is contained in:
Wilson Lin 2022-06-22 03:56:33 +10:00
parent bfae1e0897
commit 0a270f4f70
1 changed files with 13 additions and 0 deletions

13
python/minify_html.pyi Normal file
View File

@ -0,0 +1,13 @@
def minify(
code: str,
do_not_minify_doctype: bool = False,
ensure_spec_compliant_unquoted_attribute_values: bool = False,
keep_closing_tags: bool = False,
keep_comments: bool = False,
keep_html_and_head_opening_tags: bool = False,
keep_spaces_between_attributes: bool = False,
minify_css: bool = False,
minify_js: bool = False,
remove_bangs: bool = False,
remove_processing_instructions: bool = False,
) -> str: ...