Fix all remaining type hint compatibility issues for Python 3.12 37a65ca Parv Thakar commited on Jun 29