CQ-editor icon indicating copy to clipboard operation
CQ-editor copied to clipboard

Python 3.11 multimethod.DispatchError when option Reload CQ enabled

Open lorenzncode opened this issue 2 years ago • 1 comments

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

lorenzncode avatar Jan 28 '23 18:01 lorenzncode

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.

lorenzncode avatar Jan 31 '23 04:01 lorenzncode