mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-24 15:12:00 +00:00
mypy: ignore attr-defined for errno.ENOATTR/ENODATA
This commit is contained in:
parent
75d8abc47b
commit
b78f330024
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue