Skip to content

Commit 2312af4

Browse files
Remove type check for Dataset class
Fixes #157
1 parent 12506b8 commit 2312af4

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+
- Removed bad type check.

policyengine/simulation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
CountryType = Literal["uk", "us"]
3838
ScopeType = Literal["household", "macro"]
3939
DataType = (
40-
str | dict[Any, Any] | Dataset | None
40+
str | dict[Any, Any] | Any | None
4141
) # Needs stricter typing. Any==policyengine_core.data.Dataset, but pydantic refuses for some reason.
4242
TimePeriodType = int
4343
ReformType = ParametricReform | Type[StructuralReform] | None

0 commit comments

Comments
 (0)