def METHOD_NAME(self) -> None:
    if self.expected_extension() != self.extension:
        raise ValueError(
            f"Filename '{self.filename}' does not have a proper extension: '{self.expected_extension()}'"
        )