Skip to content
Myr

➖ Drop `typing-extensions` as external dependency (#1467)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sofie Van Landeghem · committed by GitHub · parent f35ae0d · Browse files · 3 files+1 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

Diff stats

3 files+1 added−6 removed

  • other:+1 added−6 removed

3 files+1 added−6 removed

modified:typer/_typing.py+1 added-3 removed
59 unmodified lines
60 return type_ is Callable or get_origin(type_) is Callable616263def is_literal_type(type_: type[Any]) -> bool:64 import typing_extensions64 return get_origin(type_) is Literal6566 return get_origin(type_) in (Literal, typing_extensions.Literal)666867def literal_values(type_: type[Any]) -> tuple[Any, ...]:68 return get_args(type_)6970
11 unmodified lines
modified:pyproject.toml-1 removed
33 unmodified lines
34 "Programming Language :: Python :: 3.14",35]36dependencies = [37 "click >= 8.0.0",38 "typing-extensions >= 3.7.4.3",38]39readme = "README.md"4041[project.urls]
216 unmodified lines
modified:uv.lock-2 removed
2228 unmodified lines
2229 { name = "click", version = "8.1.8", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.10'" },2230 { name = "click", version = "8.3.1", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.10'" },2231 { name = "rich" },2232 { name = "shellingham" },2233 { name = "typing-extensions" },2233]22342235[package.dev-dependencies]2236dev = [
58 unmodified lines
2295requires-dist = [2296 { name = "click", specifier = ">=8.0.0" },2297 { name = "rich", specifier = ">=10.11.0" },2298 { name = "shellingham", specifier = ">=1.3.0" },2300 { name = "typing-extensions", specifier = ">=3.7.4.3" },2299]23002301[package.metadata.requires-dev]2302dev = [
138 unmodified lines