Skip to content

Commit

Permalink
Make virtual repr file names unique (#896)
Browse files Browse the repository at this point in the history
* Make virtual repr file names unique

* Add newsfragments
  • Loading branch information
hynek authored Dec 29, 2021
1 parent 03dd713 commit 0575d51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/895.change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``.
1 change: 1 addition & 0 deletions changelog.d/896.change.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ``coverage report`` for projects who use ``attrs`` and don't set a ``--source``.
2 changes: 1 addition & 1 deletion src/attr/_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ def _add_eq(cls, attrs=None):
if HAS_F_STRINGS:

def _make_repr(attrs, ns, cls):
unique_filename = "repr"
unique_filename = _generate_unique_filename(cls, "repr")
# Figure out which attributes to include, and which function to use to
# format them. The a.repr value can be either bool or a custom
# callable.
Expand Down

0 comments on commit 0575d51

Please sign in to comment.