replbase 0.0.63__tar.gz → 0.0.65__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {replbase-0.0.63 → replbase-0.0.65}/PKG-INFO +1 -1
- {replbase-0.0.63 → replbase-0.0.65}/pyproject.toml +1 -1
- {replbase-0.0.63 → replbase-0.0.65}/replbase/cmd_meta.py +3 -3
- {replbase-0.0.63 → replbase-0.0.65}/LICENSE +0 -0
- {replbase-0.0.63 → replbase-0.0.65}/README.md +0 -0
- {replbase-0.0.63 → replbase-0.0.65}/replbase/__init__.py +0 -0
- {replbase-0.0.63 → replbase-0.0.65}/replbase/repl_base.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "replbase"
|
|
7
|
-
version = "0.0.
|
|
7
|
+
version = "0.0.65"
|
|
8
8
|
description = "\"Combination of other REPL tools into a reusable class that generates a REPL\""
|
|
9
9
|
authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
|
|
10
10
|
license = "MIT"
|
|
@@ -268,7 +268,7 @@ class CommandMeta:
|
|
|
268
268
|
if isinstance(arg_type, GenericAlias):
|
|
269
269
|
main_type, sub_type = extract_type_info(parm.annotation)
|
|
270
270
|
if main_type is list:
|
|
271
|
-
cmd_init["
|
|
271
|
+
cmd_init["action"] = "append"
|
|
272
272
|
if sub_type in AUTO_ARG_TYPES:
|
|
273
273
|
cmd_init["type"] = sub_type
|
|
274
274
|
|
|
@@ -353,7 +353,7 @@ class CommandMeta:
|
|
|
353
353
|
"""Parse the argument strings from the docstring"""
|
|
354
354
|
# pylint: disable=C0301
|
|
355
355
|
arg_re = re.compile(
|
|
356
|
-
r"(?P<arg_name>[a-zA-Z_]\w*)\s*(?P<type_hint>\(
|
|
356
|
+
r"(?P<arg_name>[a-zA-Z_]\w*)\s*(?P<type_hint>\(.+(?:, optional)*\)):(?P<arg_text>\s*.+?$)"
|
|
357
357
|
)
|
|
358
358
|
# pylint: enable=C0301
|
|
359
359
|
|
|
@@ -368,7 +368,7 @@ class CommandMeta:
|
|
|
368
368
|
|
|
369
369
|
if param:
|
|
370
370
|
arg_type = self.get_param_str(param)
|
|
371
|
-
args[cur_arg].append(f"{arg_type}{arg_text}")
|
|
371
|
+
args[cur_arg].append(f"{arg_type}:{arg_text}")
|
|
372
372
|
elif cur_arg:
|
|
373
373
|
args[cur_arg].append(line)
|
|
374
374
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|