summaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2026-05-08 18:32:04 +0300
committerrobot-piglet <[email protected]>2026-05-08 19:08:45 +0300
commite548066cbf4ecebc80810e45b6c6eb7c400008d9 (patch)
tree1d5b145f299534b02edd76bab29959bc5336abc1 /contrib/python
parentca4092e595fee6ec37482fde0782ec618cec4ab8 (diff)
Intermediate changes
commit_hash:ab8b4a5189af17512400dc4bf21daac4189cdb08
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/typer/.dist-info/METADATA6
-rw-r--r--contrib/python/typer/README.md4
-rw-r--r--contrib/python/typer/typer/__init__.py2
-rw-r--r--contrib/python/typer/typer/cli.py1
-rw-r--r--contrib/python/typer/typer/core.py9
-rw-r--r--contrib/python/typer/typer/main.py4
-rw-r--r--contrib/python/typer/ya.make2
7 files changed, 10 insertions, 18 deletions
diff --git a/contrib/python/typer/.dist-info/METADATA b/contrib/python/typer/.dist-info/METADATA
index 8fc14ea2b68..c51ac0dce26 100644
--- a/contrib/python/typer/.dist-info/METADATA
+++ b/contrib/python/typer/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: typer
-Version: 0.24.1
+Version: 0.24.2
Summary: Typer, build great CLIs. Easy to code. Based on Python type hints.
Author-Email: =?utf-8?q?Sebasti=C3=A1n_Ram=C3=ADrez?= <[email protected]>
License-Expression: MIT
@@ -77,10 +77,6 @@ The key features are:
* **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.
* **Run scripts**: Typer includes a `typer` command/program that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.
-## 2026 February - Typer developer survey
-
-Help us define Typer's future by filling the <a href="https://forms.gle/nYvutPrVkmBQZLas7" class="external-link" target="_blank">Typer developer survey</a>. ✨
-
## FastAPI of CLIs
**Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling, it's the FastAPI of CLIs.
diff --git a/contrib/python/typer/README.md b/contrib/python/typer/README.md
index 8e203e31e1a..87b5f031188 100644
--- a/contrib/python/typer/README.md
+++ b/contrib/python/typer/README.md
@@ -40,10 +40,6 @@ The key features are:
* **Grow large**: Grow in complexity as much as you want, create arbitrarily complex trees of commands and groups of subcommands, with options and arguments.
* **Run scripts**: Typer includes a `typer` command/program that you can use to run scripts, automatically converting them to CLIs, even if they don't use Typer internally.
-## 2026 February - Typer developer survey
-
-Help us define Typer's future by filling the <a href="https://forms.gle/nYvutPrVkmBQZLas7" class="external-link" target="_blank">Typer developer survey</a>. ✨
-
## FastAPI of CLIs
**Typer** is <a href="https://fastapi.tiangolo.com" class="external-link" target="_blank">FastAPI</a>'s little sibling, it's the FastAPI of CLIs.
diff --git a/contrib/python/typer/typer/__init__.py b/contrib/python/typer/typer/__init__.py
index cb0921c06c9..1ab42bfecde 100644
--- a/contrib/python/typer/typer/__init__.py
+++ b/contrib/python/typer/typer/__init__.py
@@ -1,6 +1,6 @@
"""Typer, build great CLIs. Easy to code. Based on Python type hints."""
-__version__ = "0.24.1"
+__version__ = "0.24.2"
from shutil import get_terminal_size as get_terminal_size
diff --git a/contrib/python/typer/typer/cli.py b/contrib/python/typer/typer/cli.py
index 4b4356f8bda..2a7d78c3a49 100644
--- a/contrib/python/typer/typer/cli.py
+++ b/contrib/python/typer/typer/cli.py
@@ -131,6 +131,7 @@ def get_typer_from_state() -> typer.Typer | None:
else:
typer.echo(f"Could not import as Python module: {state.module}", err=True)
sys.exit(1)
+ assert spec is not None
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module) # type: ignore
obj = get_typer_from_module(module)
diff --git a/contrib/python/typer/typer/core.py b/contrib/python/typer/typer/core.py
index 3e72d839893..48fee64e349 100644
--- a/contrib/python/typer/typer/core.py
+++ b/contrib/python/typer/typer/core.py
@@ -376,7 +376,7 @@ class TyperArgument(click.core.Argument):
help = f"{help} {extra_str}" if help else f"{extra_str}"
return name, help
- def make_metavar(self, ctx: click.Context | None = None) -> str:
+ def make_metavar(self, ctx: click.Context) -> str:
# Modified version of click.core.Argument.make_metavar()
# to include Argument name
if self.metavar is not None:
@@ -387,8 +387,7 @@ class TyperArgument(click.core.Argument):
var = (self.name or "").upper()
if not self.required:
var = f"[{var}]"
- type_var = self.type.get_metavar(self, ctx=ctx) # type: ignore[arg-type]
- # type_var = self.type.get_metavar(self, ctx=ctx)
+ type_var = self.type.get_metavar(self, ctx=ctx)
if type_var:
var += f":{type_var}"
if self.nargs != 1:
@@ -487,8 +486,8 @@ class TyperOption(click.core.Option):
) -> Any | Callable[[], Any] | None:
return _extract_default_help_str(self, ctx=ctx)
- def make_metavar(self, ctx: click.Context | None = None) -> str:
- return super().make_metavar(ctx=ctx) # type: ignore[arg-type]
+ def make_metavar(self, ctx: click.Context) -> str:
+ return super().make_metavar(ctx=ctx)
def get_help_record(self, ctx: click.Context) -> tuple[str, str] | None:
# Duplicate all of Click's logic only to modify a single line, to allow boolean
diff --git a/contrib/python/typer/typer/main.py b/contrib/python/typer/typer/main.py
index f4f21bb8444..ebcf639a2c3 100644
--- a/contrib/python/typer/typer/main.py
+++ b/contrib/python/typer/typer/main.py
@@ -1386,7 +1386,7 @@ def get_command_from_info(
rich_markup_mode: MarkupMode,
) -> click.Command:
assert command_info.callback, "A command must have a callback function"
- name = command_info.name or get_command_name(command_info.callback.__name__) # ty:ignore[unresolved-attribute]
+ name = command_info.name or get_command_name(command_info.callback.__name__) # ty: ignore
use_help = command_info.help
if use_help is None:
use_help = inspect.getdoc(command_info.callback)
@@ -2010,4 +2010,4 @@ def launch(
return 0
else:
- return click.launch(url)
+ return click.launch(url, wait=wait, locate=locate)
diff --git a/contrib/python/typer/ya.make b/contrib/python/typer/ya.make
index a5d15d0d3d2..30cd6fb4afb 100644
--- a/contrib/python/typer/ya.make
+++ b/contrib/python/typer/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(0.24.1)
+VERSION(0.24.2)
LICENSE(MIT)