Skip to content

Commit ae95e4c

Browse files
authored
Merge pull request #132 from PolicyEngine/nikhilwoodruff/issue131
Fix subtracts class type
2 parents ab0585d + 5e52e13 commit ae95e4c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
fixed:
4+
- Bug causing `subtracts` to not accept strings.

policyengine_core/variables/variable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def __init__(self, baseline_variable=None):
256256
)
257257

258258
self.adds = self.set(attr, "adds")
259-
self.subtracts = self.set(attr, "subtracts", allowed_type=list)
259+
self.subtracts = self.set(attr, "subtracts")
260260
self.uprating = self.set(attr, "uprating", allowed_type=str)
261261
self.hidden_input = self.set(
262262
attr, "hidden_input", allowed_type=bool, default=False

0 commit comments

Comments
 (0)