Skip to content

Commit e7a3dd4

Browse files
authored
Remove type tagging of command line arguments (#3)
1 parent def16a6 commit e7a3dd4

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

MANIFEST.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
recursive-include src *.py
2-
include README.md
2+
include README.md
3+
global-include *.typed
4+
global-include *.pyi

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = argsubparse
3-
version = 0.0.7
3+
version = 0.0.8
44
author = Jordan Woods
55
author_email = [email protected]
66
description = Dynamically build argparse subparsers
@@ -20,5 +20,9 @@ package_dir =
2020
packages = find:
2121
python_requires = >=3.6
2222

23+
[options.package_data]
24+
argsubparse =
25+
py.typed
26+
2327
[options.packages.find]
2428
where = src

src/argsubparse/argsubparse.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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__]

src/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)