Skip to content

Commit

Permalink
Set assigned=() to avoid overwriting any properties of the wrapper.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 10, 2024
1 parent c2d6bc9 commit 5f1582d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def iglob(self, pattern):
#
# --- Reading or writing an entire file at once.

@functools.wraps(open)
@functools.wraps(open, assigned=())
def open(self, *args, **kwargs):
"""Open this file and return a corresponding file object.
Expand Down

0 comments on commit 5f1582d

Please sign in to comment.