Merge pull request #7865 from ThomasWaldmann/fix-xattr-mypy-master

mypy: ignore attr-defined for errno.ENOATTR/ENODATA
This commit is contained in:
TW 2023-10-10 21:36:21 +02:00 committed by GitHub
commit 9108039786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@ from ..helpers import Buffer
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)