Skip to content

Commit

Permalink
fix for py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed Dec 18, 2024
1 parent a94768b commit 39f3c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ota_metadata/file_table/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import annotations

from typing import NamedTuple, Optional
from typing import Dict, NamedTuple, Optional

from msgpack import Unpacker, packb
from pydantic import PlainSerializer, PlainValidator
Expand All @@ -30,7 +30,7 @@ class FileEntryAttrs(NamedTuple):
gid: int
size: Optional[int] = None
inode: Optional[int] = None
xattrs: Optional[dict[str, str]] = None
xattrs: Optional[Dict[str, str]] = None

@classmethod
def _validator(cls, _in: bytes | FileEntryAttrs) -> FileEntryAttrs:
Expand Down

0 comments on commit 39f3c5b

Please sign in to comment.