Skip to content

Commit

Permalink
Fix #388 - python3.8 type hint compatibility
Browse files Browse the repository at this point in the history
This should address the following error when running `bump-my-version`
in a `python3.8` environment:

```
    def is_subpath(parent: Path | str, path: Path | str) -> bool:
TypeError: unsupported operand type(s) for |: 'type' and 'type'
```
  • Loading branch information
jpavlav committed Jan 29, 2025
1 parent 5dde40f commit 5744f86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bumpversion/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""General utilities."""

from __future__ import annotations

import string
import subprocess
from pathlib import Path
Expand Down

0 comments on commit 5744f86

Please # to comment.