Skip to content

Commit

Permalink
fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
rnag committed Jan 20, 2025
1 parent 67bb128 commit 2ee32a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dataclass_wizard/wizard_mixins.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ __all__ = ['JSONListWizard',

import json
from os import PathLike
from typing import AnyStr, TextIO, BinaryIO
from typing import AnyStr, TextIO, BinaryIO, Union, TypeAlias

from .abstractions import W
from .enums import LetterCase
Expand All @@ -17,7 +17,8 @@ from .type_def import (T, ListOfJSONObject,

# A type that can be string or `path.Path`
# https://stackoverflow.com/a/78070015/10237506
type FileType = str | bytes | PathLike
# A type that can be string, bytes, or `PathLike`
FileType: TypeAlias = Union[str, bytes, PathLike]


class JSONListWizard(JSONSerializable, str=False):
Expand Down

0 comments on commit 2ee32a5

Please sign in to comment.