File tree Expand file tree Collapse file tree 4 files changed +17
-2
lines changed
Expand file tree Collapse file tree 4 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 3.1.2 (January 26, 2026)
2+
3+ - Bug Fixes
4+ - Fixed missing ` typing-extensions ` dependency for Python 3.10
5+
16## 3.1.1 (January 26, 2026)
27
38- Bug Fixes
Original file line number Diff line number Diff line change @@ -290,7 +290,12 @@ def get_items(self) -> list[CompletionItems]:
290290 RawTextRichHelpFormatter ,
291291 RichHelpFormatter ,
292292)
293- from typing_extensions import Self
293+
294+ if sys .version_info >= (3 , 11 ):
295+ from typing import Self
296+ else :
297+ from typing_extensions import Self
298+
294299
295300from . import constants
296301from . import rich_utils as ru
Original file line number Diff line number Diff line change 22
33import re
44import shlex
5+ import sys
56from collections .abc import Iterable
67from dataclasses import (
78 dataclass ,
89 field ,
910)
1011from typing import Any
1112
12- from typing_extensions import Self
13+ if sys .version_info >= (3 , 11 ):
14+ from typing import Self
15+ else :
16+ from typing_extensions import Self
1317
1418from . import (
1519 constants ,
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ dependencies = [
3535 " pyreadline3>=3.4; platform_system == 'Windows'" ,
3636 " rich>=14.3.0" ,
3737 " rich-argparse>=1.7.1" ,
38+ " typing-extensions; python_version == '3.10'" ,
3839]
3940
4041[dependency-groups ]
You can’t perform that action at this time.
0 commit comments