CadQuery / CQ-editor

CadQuery GUI editor based on PyQT
Apache License 2.0
757 stars 116 forks source link

Python 3.11 multimethod.DispatchError when option Reload CQ enabled #389

Open lorenzncode opened 1 year ago

lorenzncode commented 1 year ago

See the description of #358. The issue was previously fixed (tested with older Python versions). The error is reproducible with Python 3.11.

lorenzncode commented 1 year ago

I find the reload issue can be resolved by eliminating the forward reference: https://github.com/CadQuery/cadquery/blob/60fdbea0e0c85946b44ef31fdf7c7f62d0bf781d/cadquery/occ_impl/geom.py#L28

Say by moving VectorLike after the Vector class and replace the stringized annotation.