Skip to content

Commit

Permalink
Add type hinting for Python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Sep 24, 2022
1 parent 5048c08 commit 703df5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions bindings/py/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include README.md
include minify.go minify.c go.mod go.sum
include py.typed minify.pyi
5 changes: 5 additions & 0 deletions bindings/py/minify.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from typing import Dict, Union

def config(configuration: Dict[str, Union[str,bool,int]]) -> None: ...
def string(mediatype: str, string: str) -> str: ...
def file(mediatype: str, input_filename: str, output_filename: str) -> None: ...
Empty file added bindings/py/py.typed
Empty file.

0 comments on commit 703df5e

Please sign in to comment.