def _apply_type()

in cfn_tools/_config.py [0:0]


    def _apply_type(name: str, value: Any, dtype: Type, nullable: bool) -> Any:
        if _Config._is_null(value=value) is True:
            if nullable is True:
                return None
            ValueError(
                f"{name} configuration does not accept null value." f" Please pass {dtype}."
            )
        if isinstance(value, dtype) is False:
            value = dtype(value)
        return value