Skip to content

Commit

Permalink
Phase out union type
Browse files Browse the repository at this point in the history
  • Loading branch information
twiggler committed Oct 9, 2024
1 parent 7015b61 commit 932a86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dissect/target/plugins/os/unix/_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import uuid
from struct import unpack
from typing import Iterator, Union
from typing import Iterator

from flow.record.fieldtypes import posix_path

Expand Down Expand Up @@ -324,7 +324,7 @@ def _get_architecture(self, os: str = "unix", path: str = "/bin/ls") -> str | No
def parse_fstab(
fstab: TargetPath,
log: logging.Logger = log,
) -> Iterator[tuple[Union[uuid.UUID, str], str, str, str, str]]:
) -> Iterator[tuple[uuid.UUID | str, str, str, str, str]]:
"""Parse fstab file and return a generator that streams the details of entries,
with unsupported FS types and block devices filtered away.
"""
Expand Down

0 comments on commit 932a86b

Please sign in to comment.