Skip to content
Merged
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
5 changes: 3 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Changelog

## Upcoming
## Version 2.10.1

(released on TBD)
(released on 2025-02-18)

- Update license dates.
- Change `master` branch references to `main`.
- Provisional Python 3.6 compatibility (Union syntax).

## Version 2.10.0

Expand Down
4 changes: 2 additions & 2 deletions cli_helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import re
from functools import lru_cache
from typing import Dict
from typing import Dict, Union

from typing import TYPE_CHECKING

Expand Down Expand Up @@ -119,7 +119,7 @@ def replace(s, replace):


@lru_cache()
def _get_formatter(style) -> Terminal256Formatter | TerminalTrueColorFormatter:
def _get_formatter(style) -> Union[Terminal256Formatter, TerminalTrueColorFormatter]:
if "truecolor" in os.getenv("COLORTERM", "").lower():
return TerminalTrueColorFormatter(style=style)
else:
Expand Down
Loading