Skip to content

Commit

Permalink
util: Make type hint Python 3.9 compliant.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Nov 27, 2023
1 parent 9e9d83a commit effd189
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openage/util/fslike/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Provides Path, which is analogous to pathlib.Path,
and the type of FSLikeObject.root.
"""
from typing import NoReturn
from typing import NoReturn, Union

from io import UnsupportedOperation, TextIOWrapper
import os
Expand Down Expand Up @@ -35,7 +35,7 @@ class Path:
# lower.
# pylint: disable=too-many-public-methods

def __init__(self, fsobj, parts: str | bytes | bytearray | list | tuple = None):
def __init__(self, fsobj, parts: Union[str, bytes, bytearray, list, tuple] = None):
if isinstance(parts, str):
parts = parts.encode()

Expand Down

0 comments on commit effd189

Please sign in to comment.