larryhastings / co_annotations

Other
9 stars 5 forks source link

fix assert in MAKE_FUNCTION #14

Closed carljm closed 1 year ago

carljm commented 2 years ago

https://github.com/larryhastings/co_annotations/commit/b42ce636f2bfe9a24faa01b63adecabaae5eb6a1 didn't update an assertion in MAKE_FUNCTION handler in ceval, which causes a crash in debug builds. Update the assertion to accept either of the now two possible types for __co_annotations__, a code object or a tuple.

Fixes #12