mirror of https://github.com/borgbackup/borg.git
Merge pull request #7865 from ThomasWaldmann/fix-xattr-mypy-master
mypy: ignore attr-defined for errno.ENOATTR/ENODATA
This commit is contained in:
commit
9108039786
|
@ -5,10 +5,10 @@ from ..helpers import Buffer
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
ENOATTR = errno.ENOATTR
|
ENOATTR = errno.ENOATTR # type: ignore[attr-defined]
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# on some platforms, ENOATTR is missing, use ENODATA there
|
# 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)
|
buffer = Buffer(bytearray, limit=2**24)
|
||||||
|
|
Loading…
Reference in New Issue