add type hints to squash noisy (albeit harmless) reflection warnings