def test_unsupported_types_for_contains(var: Var):
    """Test that unsupported types for contains throw a type error.

    Args:
        var: The base var.
    """
    with pytest.raises(TypeError) as err:
        assert var.contains(1)  # pyright: ignore [reportAttributeAccessIssue]
    assert (
        err.value.args[0]
        == f"Var of type {var._var_type} does not support contains check."
    )
Test that unsupported types for contains throw a type error.

    Args:
        var: The base var.
    
tests/units/test_var.py