stubtest: fix signature construction for overload + implicit classmethod (#9921)
__class_getitem__ and __init_subclass__ are always classmethods, even if
they aren't decorated. We previously only handled this correctly if
these methods weren't overloaded.
This came up in https://github.com/python/typeshed/pull/4937
Co-authored-by: hauntsaninja <>