fix: python 3.10 compatibility

Merged JuniorJPDJ requested to merge fix-py310 into master

retry of !22 (merged)

Merge request reports