def setdefault(self, key: str, value: Any) -> None:
        """Set default value for Pydantic model config if config value is `None`."""
        if getattr(self, key) is None:
            setattr(self, key, value)
Set default value for Pydantic model config if config value is `None`.
pydantic/mypy.py