replbase 0.0.10__tar.gz → 0.0.12__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.10
3
+ Version: 0.0.12
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.10"
7
+ version = "0.0.12"
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"
@@ -51,7 +51,6 @@ class ReplCommand:
51
51
  command: Callable = None
52
52
  help_txt: str = ""
53
53
  parser: argparse.ArgumentParser = None
54
- def_args: list = field(default_factory=list)
55
54
  def_kwargs: dict = field(default_factory=dict)
56
55
 
57
56
 
@@ -228,7 +227,6 @@ class ReplBase:
228
227
  def add_command(
229
228
  self,
230
229
  cmd_name: str,
231
- *def_args,
232
230
  cmd_func: Callable = None,
233
231
  help_txt: str = "",
234
232
  use_parser: bool = False,
@@ -259,8 +257,6 @@ class ReplBase:
259
257
  new_cmd.parser = argparse.ArgumentParser(
260
258
  description=description or help_txt
261
259
  )
262
- if def_args:
263
- new_cmd.def_args = def_args
264
260
  if def_kwargs:
265
261
  new_cmd.def_kwargs = def_kwargs
266
262
 
@@ -339,7 +335,6 @@ class ReplBase:
339
335
 
340
336
  cmd.command(cmd.parser.parse_args(cmd_args))
341
337
  else:
342
- cmd_args = cmd_args or cmd.def_args
343
338
  if cmd.def_kwargs:
344
339
  cmd.command(*cmd_args, **cmd.def_kwargs)
345
340
  else:
File without changes
File without changes