Skip to content
Myr

Fix linting error.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Suppress mypy. Suppress mypy error. Suppress mypy error.

authored by DailyDreaming · committed by DailyDreaming · parent 50374e3 · Browse files · 1 file+8 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−1 removed

  • other:+8 added−1 removed

1 file+8 added−1 removed

modified:src/flask/cli.py+8 added-1 removed
7 unmodified lines
8from functools import update_wrapper9from operator import attrgetter10from threading import Lock11from threading import Thread12from typing import Any13from typing import TYPE_CHECKING1415import click16from werkzeug.utils import import_string17
19 unmodified lines
37 #38 # We technically have importlib.metadata on 3.8+,39 # but the API changed in 3.10, so use the backport40 # for consistency.41 if TYPE_CHECKING:42 metadata: Any43 else:44 # we do this to avoid a version dependent mypy error45 # because importlib_metadata is not installed in python3.10+39 import importlib_metadata as metadata # type: ignore46 import importlib_metadata as metadata474849class NoAppException(click.UsageError):50 """Raised if an application cannot be found or loaded."""
949 unmodified lines