Skip to content

Commit 1176f81

Browse files
committed
fix for typing extension issue
1 parent cf13882 commit 1176f81

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [13.4.1] - 2023-06-31
9+
10+
### Fixed
11+
12+
- Fixed typing extensions import https://github.com/Textualize/rich/issues/2979
13+
814
## [13.4.0] - 2023-06-31
915

1016
### Added
@@ -1948,6 +1954,7 @@ Major version bump for a breaking change to `Text.stylize signature`, which corr
19481954

19491955
- First official release, API still to be stabilized
19501956

1957+
[13.4.1]: https://github.com/textualize/rich/compare/v13.4.0...v13.4.1
19511958
[13.4.0]: https://github.com/textualize/rich/compare/v13.3.5...v13.4.0
19521959
[13.3.5]: https://github.com/textualize/rich/compare/v13.3.4...v13.3.5
19531960
[13.3.4]: https://github.com/textualize/rich/compare/v13.3.3...v13.3.4

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rich"
33
homepage = "https://github.com/Textualize/rich"
44
documentation = "https://rich.readthedocs.io/en/latest/"
5-
version = "13.4.0"
5+
version = "13.4.1"
66
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
77
authors = ["Will McGugan <willmcgugan@gmail.com>"]
88
license = "MIT"

rich/markdown.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
from __future__ import annotations
22

3+
import sys
34
from typing import ClassVar, Dict, Iterable, List, Optional, Type, Union
45

56
from markdown_it import MarkdownIt
67
from markdown_it.token import Token
78
from typing_extensions import get_args
89

10+
if sys.version_info >= (3, 8):
11+
from typing import get_args
12+
else:
13+
from typing_extensions import get_args # pragma: no cover
14+
915
from rich.table import Table
1016

1117
from . import box
@@ -701,7 +707,6 @@ def __rich_console__(
701707

702708

703709
if __name__ == "__main__": # pragma: no cover
704-
705710
import argparse
706711
import sys
707712

0 commit comments

Comments
 (0)