From b78f330024f979549beae6953d98497bcb775332 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 10 Oct 2023 20:50:25 +0200 Subject: [PATCH] mypy: ignore attr-defined for errno.ENOATTR/ENODATA --- src/borg/platform/xattr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/platform/xattr.py b/src/borg/platform/xattr.py index ad4f2b7d62..dae0ae6d9d 100644 --- a/src/borg/platform/xattr.py +++ b/src/borg/platform/xattr.py @@ -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)