Skip to content

Commit a2bed82

Browse files
⬆ Bump ty from 0.0.24 to 0.0.25 (#346)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: svlandeg <svlandeg@github.com>
1 parent b46efec commit a2bed82

File tree

6 files changed

+29
-29
lines changed

6 files changed

+29
-29
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tests = [
7171
"pytest>=7.4.0,<10.0.0",
7272
"ruff==0.15.7",
7373
"uvicorn>=0.39.0",
74-
"ty>=0.0.9",
74+
"ty>=0.0.25",
7575
]
7676

7777
[build-system]

src/fastapi_cli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
try:
2626
import uvicorn
2727
except ImportError: # pragma: no cover
28-
uvicorn = None # type: ignore[assignment]
28+
uvicorn = None # type: ignore[assignment] # ty: ignore[invalid-assignment]
2929

3030

3131
try:
@@ -39,7 +39,7 @@
3939

4040

4141
try:
42-
from fastapi_new.cli import ( # type: ignore[import-not-found]
42+
from fastapi_new.cli import ( # type: ignore[import-not-found] # ty: ignore[unresolved-import]
4343
app as fastapi_new_cli,
4444
)
4545

src/fastapi_cli/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def _read_pyproject_toml(cls) -> dict[str, Any]:
1919
return {}
2020

2121
try:
22-
import tomllib # type: ignore[import-not-found, unused-ignore]
22+
import tomllib # type: ignore[import-not-found, unused-ignore] # ty: ignore[unresolved-import]
2323
except ImportError:
2424
try:
2525
import tomli as tomllib # type: ignore[no-redef, import-not-found, unused-ignore]
@@ -30,7 +30,7 @@ def _read_pyproject_toml(cls) -> dict[str, Any]:
3030
with open(pyproject_path, "rb") as f:
3131
data = tomllib.load(f)
3232

33-
return data.get("tool", {}).get("fastapi", {}) # type: ignore
33+
return data.get("tool", {}).get("fastapi", {}) # type: ignore[no-any-return]
3434

3535
@classmethod
3636
def resolve(cls, entrypoint: str | None = None) -> "FastAPIConfig":

src/fastapi_cli/discover.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try:
1212
from fastapi import FastAPI
1313
except ImportError: # pragma: no cover
14-
FastAPI = None # type: ignore[misc, assignment]
14+
FastAPI = None # type: ignore[misc, assignment] # ty: ignore[invalid-assignment]
1515

1616

1717
def get_default_path() -> Path:

tests/test_requirements.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_no_uvicorn() -> None:
1818

1919
import fastapi_cli.cli
2020

21-
fastapi_cli.cli.uvicorn = None # type: ignore[attr-defined, assignment]
21+
fastapi_cli.cli.uvicorn = None # type: ignore[attr-defined, assignment] # ty: ignore[invalid-assignment]
2222

2323
with changing_dir(assets_path):
2424
result = runner.invoke(fastapi_cli.cli.app, ["dev", "single_file_app.py"])
@@ -29,15 +29,15 @@ def test_no_uvicorn() -> None:
2929
in result.exception.args[0]
3030
)
3131

32-
fastapi_cli.cli.uvicorn = uvicorn # type: ignore[attr-defined]
32+
fastapi_cli.cli.uvicorn = uvicorn # type: ignore[attr-defined] # ty: ignore[invalid-assignment]
3333

3434

3535
def test_no_fastapi() -> None:
3636
from fastapi import FastAPI
3737

3838
import fastapi_cli.discover
3939

40-
fastapi_cli.discover.FastAPI = None # type: ignore[attr-defined, assignment]
40+
fastapi_cli.discover.FastAPI = None # type: ignore[attr-defined, assignment] # ty: ignore[invalid-assignment]
4141
with changing_dir(assets_path):
4242
with pytest.raises(FastAPICLIException) as exc_info:
4343
get_import_data(path=Path("single_file_app.py"))

uv.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)