This commit is contained in:
Your Name
2024-04-27 03:21:36 -05:00
parent d857c58c4b
commit 4ffbd8982f
31 changed files with 2675 additions and 15 deletions

View File

@@ -1,10 +1,9 @@
import os
import errno
from typing import Dict, Optional, Tuple
_cached_attributes: Dict[Tuple, Optional[bytes]] = {}
_cached_attributes: dict[tuple, bytes | None] = {}
def getxattr(path: str, attr_name: str) -> Optional[bytes]:
def getxattr(path: str, attr_name: str) -> bytes | None:
key = (path, attr_name)
if key not in _cached_attributes:
try: