librelane 2.4.0.dev9__py3-none-any.whl → 2.4.0.dev10__py3-none-any.whl
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 librelane might be problematic. Click here for more details.
- librelane/config/variable.py +16 -0
- {librelane-2.4.0.dev9.dist-info → librelane-2.4.0.dev10.dist-info}/METADATA +1 -1
- {librelane-2.4.0.dev9.dist-info → librelane-2.4.0.dev10.dist-info}/RECORD +5 -5
- {librelane-2.4.0.dev9.dist-info → librelane-2.4.0.dev10.dist-info}/WHEEL +0 -0
- {librelane-2.4.0.dev9.dist-info → librelane-2.4.0.dev10.dist-info}/entry_points.txt +0 -0
librelane/config/variable.py
CHANGED
|
@@ -440,6 +440,9 @@ class Variable:
|
|
|
440
440
|
return_value = list()
|
|
441
441
|
raw = value
|
|
442
442
|
if isinstance(raw, list) or isinstance(raw, tuple):
|
|
443
|
+
if validating_type == List[Path]:
|
|
444
|
+
if any(isinstance(item, List) for item in raw):
|
|
445
|
+
Variable.__flatten_list(value)
|
|
443
446
|
pass
|
|
444
447
|
elif is_string(raw):
|
|
445
448
|
if not permissive_typing:
|
|
@@ -725,3 +728,16 @@ class Variable:
|
|
|
725
728
|
and self.type == rhs.type
|
|
726
729
|
and self.default == rhs.default
|
|
727
730
|
)
|
|
731
|
+
|
|
732
|
+
# Flatten list. Note: Must modify value, not return a new list.
|
|
733
|
+
@staticmethod
|
|
734
|
+
def __flatten_list(value: list):
|
|
735
|
+
new_list = []
|
|
736
|
+
for item in value:
|
|
737
|
+
if isinstance(item, list):
|
|
738
|
+
for sub_item in item:
|
|
739
|
+
new_list.append(sub_item)
|
|
740
|
+
else:
|
|
741
|
+
new_list.append(item)
|
|
742
|
+
|
|
743
|
+
value[:] = new_list
|
|
@@ -23,7 +23,7 @@ librelane/config/flow.py,sha256=qCGaUOj12j57gORzoE10m7_WG-n600llnFDMlZagUF4,1666
|
|
|
23
23
|
librelane/config/pdk_compat.py,sha256=rznq5xIny9M0PmddhPOGtCIrSdv98ysAoYgkpyM0gUA,8450
|
|
24
24
|
librelane/config/preprocessor.py,sha256=I239Y01dC2o5eb1UtcSbLdybVrZgqGyDr7ecT234I4Y,14913
|
|
25
25
|
librelane/config/removals.py,sha256=lJ0xpkCqnZAdA_ug4yq0NDjRBFuw4XsdORwymbEVGyQ,2907
|
|
26
|
-
librelane/config/variable.py,sha256=
|
|
26
|
+
librelane/config/variable.py,sha256=r88sLpxb7GR2QBwh9EKJNN_Vpd_vjUpRBJq7V3Fd6jI,26786
|
|
27
27
|
librelane/container.py,sha256=3KHxs3dUSVUZVYsS6fsA7dD3Q4QEQEzRxgXZZh9dzi0,7554
|
|
28
28
|
librelane/env_info.py,sha256=vAE9AZ_vDFLt7Srtg4ZywPzE6vgVhCrIvg8PP25-BJ8,10460
|
|
29
29
|
librelane/examples/spm/config.yaml,sha256=YKBm0lsY3AJZNcxAh1sQ1QMmJeVCpOpil6dw_RgQh4c,633
|
|
@@ -163,7 +163,7 @@ librelane/steps/step.py,sha256=OkFNyW86ZY9VlNQHUeJIOLHtOuO1bioXsnwky7_l1pc,55154
|
|
|
163
163
|
librelane/steps/tclstep.py,sha256=0PMWJ6C3dKnlQf9mA9rZntgxUBCiByE9csHcEcM1iq0,10027
|
|
164
164
|
librelane/steps/verilator.py,sha256=MWx2TpLqYyea9_jSeLG9c2S5ujvYERQZRFNaMhfHxZE,7916
|
|
165
165
|
librelane/steps/yosys.py,sha256=GX6rTiQG-ZhDxfB9SxrPQ9Sab3WC84p0OUtqiL1Nubk,12533
|
|
166
|
-
librelane-2.4.0.
|
|
167
|
-
librelane-2.4.0.
|
|
168
|
-
librelane-2.4.0.
|
|
169
|
-
librelane-2.4.0.
|
|
166
|
+
librelane-2.4.0.dev10.dist-info/METADATA,sha256=meNmOy0WIvFs052fTV8herlmjP2wwBlTa8txR4Lf9Hg,6561
|
|
167
|
+
librelane-2.4.0.dev10.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
168
|
+
librelane-2.4.0.dev10.dist-info/entry_points.txt,sha256=GTBvXykNMMFsNKiJFgtEw7P1wb_VZIqVM35EFSpyZQE,263
|
|
169
|
+
librelane-2.4.0.dev10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|