mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-09 19:51:38 -04:00
👷 Add ty to precommit (#15091)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
This commit is contained in:
17 files changed
+107
-63
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ except ImportError: # pragma: no cover
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if not cli_main: # type: ignore[truthy-function]
|
||||
if not cli_main: # type: ignore[truthy-function] # ty: ignore[unused-ignore-comment]
|
||||
message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
|
||||
print(message)
|
||||
raise RuntimeError(message) # noqa: B904
|
||||
|
||||
Reference in new issue
Block a user