Add `assigned_stmts()` to PEP 695 nodes (#2320) (#2321)

(cherry picked from commit d7be465ef2951dc5ea45b495ed31b69e0e8e4017)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
4 files changed