replbase 0.0.44__tar.gz → 0.0.45__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.44
3
+ Version: 0.0.45
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.44"
7
+ version = "0.0.45"
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"
@@ -382,13 +382,12 @@ class ReplBase:
382
382
  Enum: Selected enum value
383
383
  """
384
384
 
385
- if enum_cls:
386
- options = dict(enum_cls.__members__)
385
+ options = dict(enum_cls.__members__)
387
386
 
388
- if len(options) == 1:
389
- return list(options.values())[0]
390
- else:
391
- return self.input_choice_dict(prompt, options)
387
+ if len(options) == 1:
388
+ return list(options.values())[0]
389
+ else:
390
+ return self.input_choice_dict(prompt, options)
392
391
 
393
392
  def debug(self, *args) -> None:
394
393
  """Print only if debug_enabled == True"""
File without changes
File without changes