policyengine 3.1.6__py3-none-any.whl → 3.1.7__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.
- policyengine/__pycache__/__init__.cpython-313.pyc +0 -0
- policyengine/core/parameter.py +4 -0
- policyengine/core/parameter_value.py +4 -2
- {policyengine-3.1.6.dist-info → policyengine-3.1.7.dist-info}/METADATA +1 -1
- {policyengine-3.1.6.dist-info → policyengine-3.1.7.dist-info}/RECORD +8 -8
- {policyengine-3.1.6.dist-info → policyengine-3.1.7.dist-info}/WHEEL +0 -0
- {policyengine-3.1.6.dist-info → policyengine-3.1.7.dist-info}/licenses/LICENSE +0 -0
- {policyengine-3.1.6.dist-info → policyengine-3.1.7.dist-info}/top_level.txt +0 -0
|
Binary file
|
policyengine/core/parameter.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
1
2
|
from uuid import uuid4
|
|
2
3
|
|
|
3
4
|
from pydantic import BaseModel, Field
|
|
@@ -5,6 +6,9 @@ from pydantic import BaseModel, Field
|
|
|
5
6
|
from .parameter_value import ParameterValue
|
|
6
7
|
from .tax_benefit_model_version import TaxBenefitModelVersion
|
|
7
8
|
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from .parameter_value import ParameterValue
|
|
11
|
+
|
|
8
12
|
|
|
9
13
|
class Parameter(BaseModel):
|
|
10
14
|
id: str = Field(default_factory=lambda: str(uuid4()))
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
2
3
|
from uuid import uuid4
|
|
3
4
|
|
|
4
5
|
from pydantic import BaseModel, Field
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from .parameter import Parameter
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
class ParameterValue(BaseModel):
|
|
10
12
|
id: str = Field(default_factory=lambda: str(uuid4()))
|
|
11
|
-
parameter: Parameter | None = None
|
|
13
|
+
parameter: "Parameter | None" = None
|
|
12
14
|
value: float | int | str | bool | list | None = None
|
|
13
15
|
start_date: datetime
|
|
14
16
|
end_date: datetime | None = None
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
policyengine/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
policyengine/__pycache__/__init__.cpython-313.pyc,sha256=
|
|
2
|
+
policyengine/__pycache__/__init__.cpython-313.pyc,sha256=QdDnJpEU322F2GyH3GCCTbAoQy1XElYycMgEbuzy5Lw,175
|
|
3
3
|
policyengine/core/__init__.py,sha256=KBVhkqzkvjWLDDwk96vquQKL63ZFuLen5AzBOBnO9pg,912
|
|
4
4
|
policyengine/core/dataset.py,sha256=iJr9-J6w11uMRYy3EEJO9Gveku1m71AA1yzeo-0SiCs,16094
|
|
5
5
|
policyengine/core/dataset_version.py,sha256=6KeFCRGQto_Yyl4QY4Vo2JFythjaXrNAOHQiwRGESyM,378
|
|
6
6
|
policyengine/core/dynamic.py,sha256=ng9BjDzxdwjJ0e7zoqXFmq33E1SRbaaPYfW7pjRSSzI,1641
|
|
7
7
|
policyengine/core/output.py,sha256=cCW4vbzkLdQaT_nJTyDJBl7Hubm7nZeRuR7aVG1dKvg,643
|
|
8
|
-
policyengine/core/parameter.py,sha256=
|
|
9
|
-
policyengine/core/parameter_value.py,sha256=
|
|
8
|
+
policyengine/core/parameter.py,sha256=8RKKuGCDW1OoHPoXI9vF3JY6COc1qhUtMolXTUxPoEs,626
|
|
9
|
+
policyengine/core/parameter_value.py,sha256=ZRBZWFYtaY9TqdgjrCymzOZNmuKOBZsrWBET24DIJ_Q,434
|
|
10
10
|
policyengine/core/policy.py,sha256=ExMrUDMvNk_uuOL0cSm0UCzDyGka0t_yk6x4U0Kp6Ww,1635
|
|
11
11
|
policyengine/core/simulation.py,sha256=yvvved75XMcGP3Bj9E2tmKRxvI-DQVZv7k4uTETwBm0,1134
|
|
12
12
|
policyengine/core/tax_benefit_model.py,sha256=2Yc1RlQrUG7djDMZbJOQH4Ns86_lOnLeISCGR4-9zMo,176
|
|
@@ -32,8 +32,8 @@ policyengine/utils/__init__.py,sha256=1X-VYAWLyB9A0YRHwsGWrqQHns1WfeZ7ISC6DMU5my
|
|
|
32
32
|
policyengine/utils/dates.py,sha256=HnAqyl8S8EOYp8ibsnMTmECYoDWCSqwL-7A2_qKgxSc,1510
|
|
33
33
|
policyengine/utils/parametric_reforms.py,sha256=4P3U39-4pYTU4BN6JjgmVLUkCkBhRfZJ6UIWTlsjyQE,1155
|
|
34
34
|
policyengine/utils/plotting.py,sha256=ZAzTWz38vIaW0c3Nt4Un1kfrNoXLyHCDd1pEJIlsRg4,5335
|
|
35
|
-
policyengine-3.1.
|
|
36
|
-
policyengine-3.1.
|
|
37
|
-
policyengine-3.1.
|
|
38
|
-
policyengine-3.1.
|
|
39
|
-
policyengine-3.1.
|
|
35
|
+
policyengine-3.1.7.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
|
36
|
+
policyengine-3.1.7.dist-info/METADATA,sha256=stN3kD7499L_CWLa2RQwzpb_GYtJ8kC5RiDIY-1Tpww,45889
|
|
37
|
+
policyengine-3.1.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
38
|
+
policyengine-3.1.7.dist-info/top_level.txt,sha256=_23UPobfkneHQkpJ0e0OmDJfhCUfoXj_F2sTckCGOH4,13
|
|
39
|
+
policyengine-3.1.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|