Add type hints to configuration classes.