Skip to content

Commit

Permalink
Merge pull request #7865 from ThomasWaldmann/fix-xattr-mypy-master
Browse files Browse the repository at this point in the history
mypy: ignore attr-defined for errno.ENOATTR/ENODATA
  • Loading branch information
ThomasWaldmann authored Oct 10, 2023
2 parents 8e9c44b + b78f330 commit 9108039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/borg/platform/xattr.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@


try:
ENOATTR = errno.ENOATTR
ENOATTR = errno.ENOATTR # type: ignore[attr-defined]
except AttributeError:
# on some platforms, ENOATTR is missing, use ENODATA there
ENOATTR = errno.ENODATA
ENOATTR = errno.ENODATA # type: ignore[attr-defined]


buffer = Buffer(bytearray, limit=2**24)
Expand Down

0 comments on commit 9108039

Please # to comment.