def test_get_attribute_access_type(cls: type, attr: str, expected: GenericType) -> None:
    """Test get_attribute_access_type returns the correct type.

    Args:
        cls: Class to test.
        attr: Attribute to test.
        expected: Expected type.
    """
    if isinstance(expected, tuple):
        assert get_attribute_access_type(cls, attr) in expected
    else:
        assert get_attribute_access_type(cls, attr) == expected
Test get_attribute_access_type returns the correct type.

    Args:
        cls: Class to test.
        attr: Attribute to test.
        expected: Expected type.
    
tests/units/test_attribute_access_type.py