def is_empty(self) -> bool:
    """Returns True if there are no variables."""
    return not (
        self.size_variables or self.sequence_variables or self.mapping_variables
    )
Returns True if there are no variables.
penzai/core/shapecheck.py