File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change 2525try :
2626 import uvicorn
2727except ImportError : # pragma: no cover
28- uvicorn = None # type: ignore[assignment]
28+ uvicorn = None # type: ignore[assignment] # ty: ignore[invalid-assignment]
2929
3030
3131try :
3939
4040
4141try :
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
Original file line number Diff line number Diff line change @@ -19,18 +19,18 @@ 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 # ty : ignore[unresolved-import ]
2323 except ImportError :
2424 try :
25- import tomli as tomllib # type: ignore[no-redef, import-not-found, unused- ignore]
25+ import tomli as tomllib # type: ignore[import-not-found, no-redef] # ty: ignore[unresolved-import ]
2626 except ImportError : # pragma: no cover
2727 logger .debug ("tomli not available, skipping pyproject.toml" )
2828 return {}
2929
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" :
Original file line number Diff line number Diff line change 1111try :
1212 from fastapi import FastAPI
1313except ImportError : # pragma: no cover
14- FastAPI = None # type: ignore[misc, assignment]
14+ FastAPI = None # type: ignore[misc, assignment] # ty: ignore[invalid-assignment]
1515
1616
1717def get_default_path () -> Path :
You can’t perform that action at this time.
0 commit comments