File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11recursive-include src *.py
2- include README.md
2+ include README.md
3+ global-include *.typed
4+ global-include *.pyi
Original file line number Diff line number Diff line change 11[metadata]
22name = argsubparse
3- version = 0.0.7
3+ version = 0.0.8
44author = Jordan Woods
5566description = Dynamically build argparse subparsers
@@ -20,5 +20,9 @@ package_dir =
2020packages = find:
2121python_requires = >=3.6
2222
23+ [options.package_data]
24+ argsubparse =
25+ py.typed
26+
2327[options.packages.find]
2428where = src
Original file line number Diff line number Diff line change @@ -80,8 +80,6 @@ def create_subparser(
8080 short_option = f"-{ short_option } "
8181 arg_name = (short_option , f"--{ k } " )
8282
83- if v .annotation is not inspect ._empty :
84- arg_params ["type" ] = v .annotation
8583 function_parser .add_argument (* arg_name , ** arg_params )
8684
8785 usage = [parser .usage , func .__doc__ ]
You can’t perform that action at this time.
0 commit comments