functools: Give up on lazy-importing types (#124736)
PR #121089 added an eager import for types.MethodType, but still left the existing hacks for lazily importing from types. We could also create MethodType internally in functools.py (e.g., by using `type(Placeholder.__repr__)`, but it feels not worth it at this point, so instead I unlazified all the usages of types in the module.
J
Jelle Zijlstra committed
95581b35517f547b44e42631bd97ab4ba1a5c343
Parent: 76fbee6
Committed by GitHub <noreply@github.com>
on 9/29/2024, 1:31:06 PM