diff --git a/src/attr/_make.py b/src/attr/_make.py index bee7c389f..d091fcaea 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -1971,11 +1971,7 @@ def __repr__(self): return "..." real_cls = self.__class__ if ns is None: - qualname = getattr(real_cls, "__qualname__", None) - if qualname is not None: - class_name = qualname.rsplit(">.", 1)[-1] - else: - class_name = real_cls.__name__ + class_name = real_cls.__name__ else: class_name = ns + "." + real_cls.__name__