def test_lying_attribute() -> None:
    """Test getattr doesn't break rich repr protocol"""

    class Foo:
        def __getattr__(self, attr):
            return "foo"

    foo = Foo()
    result = pretty_repr(foo)
    assert "Foo" in result
Test getattr doesn't break rich repr protocol
tests/test_pretty.py