wizlib 3.3.4__tar.gz → 3.3.5__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.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: wizlib
3
- Version: 3.3.4
3
+ Version: 3.3.5
4
4
  Summary: Framework for flexible and powerful command-line applications
5
5
  License: MIT
6
6
  Author: Steampunk Wizard
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wizlib"
3
- version = "3.3.4"
3
+ version = "3.3.5"
4
4
  description = "Framework for flexible and powerful command-line applications"
5
5
  authors = ["Steampunk Wizard <wizlib@steampunkwizard.ca>"]
6
6
  license = "MIT"
@@ -27,14 +27,21 @@ class ConfigHandler(Handler):
27
27
 
28
28
  name = 'config'
29
29
 
30
- def __init__(self, file=None):
30
+ def __init__(self, file=None, yaml=None):
31
31
  self.file = file
32
+ self.yaml_dict = yaml
32
33
  self.cache = {}
33
34
 
34
35
  @property
35
36
  def yaml(self):
36
37
  if hasattr(self, '_yaml'):
37
38
  return self._yaml
39
+
40
+ # If yaml_dict was provided, use it directly
41
+ if self.yaml_dict is not None:
42
+ self._yaml = self.yaml_dict
43
+ return self._yaml
44
+
38
45
  path = None
39
46
  if self.file:
40
47
  path = Path(self.file)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes