Find removed co_lnotab on code objects

Proprietary

co_lnotab was removed from code objects in Python 3.15. Use co_lines() instead, which yields (start, end, line) tuples (PEP 626). Only fires where the code object's type resolves to types.CodeType.

org.openrewrite.python.migrate.FindCodeObjectCoLnotab
mod run . --recipe=org.openrewrite.python.migrate.FindCodeObjectCoLnotab

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.