PolicyEngine / policyengine-core

Core microsimulation engine for PolicyEngine models. Forked from OpenFisca-Core.
https://policyengine.github.io/policyengine-core
GNU Affero General Public License v3.0
14 stars 19 forks source link

Using Python 3.9 causes error #244

Open martinholmer opened 1 month ago

martinholmer commented 1 month ago

The following line 6 does not work under Python 3.9 because the | notation for Union was introduced into Python typing beginning with Python 3.10.

https://github.com/PolicyEngine/policyengine-core/blob/47f5bdf953d8c6776f9af1f3859864c12ebbf36f/policyengine_core/types/data_types/arrays.py#L1-L6

I suggest revising setup.py to require Python 3.10, 3.11, or 3.12.

anth-volk commented 3 weeks ago

Fix UK policy calculator failing