Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
]
dependencies = [
"click >= 8.0.0",
"typing-extensions >= 3.7.4.3",
"typing-extensions >= 3.7.4.3; python_version < '3.10'",
]
readme = "README.md"
[project.urls]
Expand Down
2 changes: 1 addition & 1 deletion tests/assets/cli/rich_formatted_app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import typer
from typing_extensions import Annotated
from typer._typing import Annotated

app = typer.Typer(rich_markup_mode="rich")

Expand Down
4 changes: 2 additions & 2 deletions tests/test_ambiguous_params.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pytest
import typer
from typer._typing import Annotated
from typer.testing import CliRunner
from typer.utils import (
AnnotatedParamWithDefaultValueError,
Expand All @@ -8,7 +9,6 @@
MultipleTyperAnnotationsError,
_split_annotation_from_typer_annotations,
)
from typing_extensions import Annotated

runner = CliRunner()

Expand Down Expand Up @@ -93,7 +93,7 @@ def test_allow_multiple_non_typer_params_in_annotated():
app = typer.Typer()

@app.command()
def cmd(my_param: Annotated[str, "someval", typer.Argument(), 4] = "hello"):
def cmd(my_param: Annotated[str, "someval", typer.Argument(), 4] = "hello"): # noqa:F821
print(my_param)

result = runner.invoke(app)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_annotated.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from pathlib import Path

import typer
from typer._typing import Annotated
from typer.testing import CliRunner
from typing_extensions import Annotated

from .utils import needs_py310

Expand Down
2 changes: 1 addition & 1 deletion tests/test_future_annotations.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from __future__ import annotations

import typer
from typer._typing import Annotated
from typer.testing import CliRunner
from typing_extensions import Annotated

runner = CliRunner()

Expand Down
Loading