psiflow icon indicating copy to clipboard operation
psiflow copied to clipboard

Serialization disagrees with typing for recent Python versions

Open pdobbelaere opened this issue 10 months ago • 2 comments

Newer Python versions (I think 3.12 and up) are seriously overhauling the typing system. (Specifically interactions between type hints, types.GenericAlias and inspect)

This causes the existing serialization module to break, rendering Psiflow unusable. There is no immediate problem for now. However, some overhauling will be required when we eventually want to upgrade.

pdobbelaere avatar Apr 01 '25 15:04 pdobbelaere

Yeah, this will need a rewrite. I am actually already experiencing issues on Python 3.11...

svandenhaute avatar Apr 22 '25 14:04 svandenhaute

reminder to then also get rid of typeguard and just adopt mypy static type checking.

svandenhaute avatar May 30 '25 22:05 svandenhaute