Skip to content

Commit

Permalink
Fix import errors in Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
OmeGak committed Sep 27, 2023
1 parent 3f4e890 commit 43fae2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## v1.3.0 (unreleased)

- Added support for `.header.yml` config files.
- Fixed compatibility with Python 3.9.

## v1.2.0

Expand Down
6 changes: 3 additions & 3 deletions src/unbeheader/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
from re import Pattern
from typing import Any
from typing import NamedTuple
from typing import TypeAlias

ConfigDict: TypeAlias = dict[str, Any]
PathCache: TypeAlias = dict[Path, bool]
# TODO: Use explicit TypeAlias when Python 3.9 is dropped
ConfigDict = dict[str, Any]
PathCache = dict[Path, bool]


@dataclass
Expand Down
2 changes: 2 additions & 0 deletions src/unbeheader/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# This file is part of Unbeheader.
# Copyright (C) CERN & UNCONVENTIONAL

from __future__ import annotations

import re
from pathlib import Path
from re import Match
Expand Down

0 comments on commit 43fae2d

Please sign in to comment.