Skip to content

Commit

Permalink
Remove type tagging of command line arguments (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods authored Feb 17, 2022
1 parent def16a6 commit e7a3dd4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
recursive-include src *.py
include README.md
include README.md
global-include *.typed
global-include *.pyi
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = argsubparse
version = 0.0.7
version = 0.0.8
author = Jordan Woods
author_email = [email protected]
description = Dynamically build argparse subparsers
Expand All @@ -20,5 +20,9 @@ package_dir =
packages = find:
python_requires = >=3.6

[options.package_data]
argsubparse =
py.typed

[options.packages.find]
where = src
2 changes: 0 additions & 2 deletions src/argsubparse/argsubparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ def create_subparser(
short_option = f"-{short_option}"
arg_name = (short_option, f"--{k}")

if v.annotation is not inspect._empty:
arg_params["type"] = v.annotation
function_parser.add_argument(*arg_name, **arg_params)

usage = [parser.usage, func.__doc__]
Expand Down
Empty file added src/py.typed
Empty file.

0 comments on commit e7a3dd4

Please sign in to comment.