Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dataclass_wizard/environ/lookups.pyi
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from dataclasses import MISSING
from typing import ClassVar
from typing import ClassVar, TypeAlias, Union

from ..decorators import cached_class_property
from ..type_def import StrCollection, EnvFileType


type _MISSING_TYPE = type(MISSING)
type STR_OR_MISSING = str | _MISSING_TYPE
type STR_OR_NONE = str | None
_MISSING_TYPE: TypeAlias = type(MISSING)
STR_OR_MISSING: TypeAlias = Union[str, _MISSING_TYPE]
STR_OR_NONE: TypeAlias = Union[str, None]

# Type of `os.environ` or `DotEnv` dict
Environ = dict[str, STR_OR_NONE]
Expand Down
6 changes: 3 additions & 3 deletions dataclass_wizard/utils/object_path.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from dataclasses import MISSING
from typing import Any, Sequence
from typing import Any, Sequence, TypeAlias, Union

type PathPart = str | int | float | bool
type PathType = Sequence[PathPart]
PathPart: TypeAlias = Union[str, int, float, bool]
PathType: TypeAlias = Sequence[PathPart]


def safe_get(data: dict | list,
Expand Down