replbase 0.0.63__tar.gz → 0.0.64__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: replbase
3
- Version: 0.0.63
3
+ Version: 0.0.64
4
4
  Summary: "Combination of other REPL tools into a reusable class that generates a REPL"
5
5
  License: MIT
6
6
  Author: Joseph Bochinski
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "replbase"
7
- version = "0.0.63"
7
+ version = "0.0.64"
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"
@@ -269,6 +269,7 @@ class CommandMeta:
269
269
  main_type, sub_type = extract_type_info(parm.annotation)
270
270
  if main_type is list:
271
271
  cmd_init["nargs"] = "+"
272
+ cmd_init["action"] = "append"
272
273
  if sub_type in AUTO_ARG_TYPES:
273
274
  cmd_init["type"] = sub_type
274
275
 
@@ -353,7 +354,7 @@ class CommandMeta:
353
354
  """Parse the argument strings from the docstring"""
354
355
  # pylint: disable=C0301
355
356
  arg_re = re.compile(
356
- r"(?P<arg_name>[a-zA-Z_]\w*)\s*(?P<type_hint>\(\w+(?:, optional)*\)):(?P<arg_text>\s*.+?$)"
357
+ r"(?P<arg_name>[a-zA-Z_]\w*)\s*(?P<type_hint>\(.+(?:, optional)*\)):(?P<arg_text>\s*.+?$)"
357
358
  )
358
359
  # pylint: enable=C0301
359
360
 
@@ -368,7 +369,7 @@ class CommandMeta:
368
369
 
369
370
  if param:
370
371
  arg_type = self.get_param_str(param)
371
- args[cur_arg].append(f"{arg_type}{arg_text}")
372
+ args[cur_arg].append(f"{arg_type}:{arg_text}")
372
373
  elif cur_arg:
373
374
  args[cur_arg].append(line)
374
375
 
File without changes
File without changes