We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b093bc7 commit 2047cfaCopy full SHA for 2047cfa
1 file changed
src/attr/_make.py
@@ -1943,11 +1943,8 @@ def __repr__(self):
1943
real_cls = self.__class__
1944
if ns is None:
1945
qualname = getattr(real_cls, "__qualname__", None)
1946
- if qualname is not None: # pragma: no cover
1947
- # This case only happens on Python 3.5 and 3.6. We exclude
1948
- # it from coverage, because we don't want to slow down our
1949
- # test suite by running them under coverage too for this
1950
- # one line.
+ if qualname is not None:
+ # This case only happens on Python 3.5 and 3.6.
1951
class_name = qualname.rsplit(">.", 1)[-1]
1952
else:
1953
class_name = real_cls.__name__
0 commit comments