While running pyright checker on desispec, I've seen a few obvious undefined variable cases.
This fixes most of them where it was clear to me what was code's intention.
coverage: 30.199% (+0.008%) from 30.191%
when pulling 259304629a1ee0e8937b05fcfeb935a4f0389440 on static_fixes
into fe88bbdcaa67093c31a77459eb9dbb767adacb2a on main.
While running pyright checker on desispec, I've seen a few obvious undefined variable cases. This fixes most of them where it was clear to me what was code's intention.