nucleic / kiwi

Efficient C++ implementation of the Cassowary constraint solving algorithm
https://kiwisolver.readthedocs.io/en/latest/
Other
692 stars 88 forks source link

Missing type hint for `Constraint.violated()` #165

Closed gsingh93 closed 1 year ago

gsingh93 commented 1 year ago

pyright is telling me that Constraint has no member called violated. This seems to be missing from _cext.pyi. I can add this later but it may be a while, so if anyone else wants to fix this go ahead.

Qix- commented 1 year ago

Yeah sorry, I must have missed that in my PR. Original commit here, for anyone wondering: 9c46f893ae3ac6f239d1a7bfccb8bf316ff02293

Just to make things easier, it takes no arguments and returns a bool.