Skip to content

Commit

Permalink
typing: Use Union for <=3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman committed Apr 25, 2024
1 parent 96176dd commit dd071c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neps/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations

from pathlib import Path
from typing import Mapping, Any, Literal, Callable
from typing import Mapping, Any, Literal, Callable, Union
from typing_extensions import TypeAlias
from dataclasses import dataclass
import logging
Expand All @@ -18,7 +18,7 @@
ConfigLike,
str,
Path,
dict[str, Any] | ERROR,
Union[dict[str, Any], ERROR],
logging.Logger,
],
None,
Expand Down

0 comments on commit dd071c1

Please sign in to comment.