File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 22
22
23
23
from quart import Quart , request
24
24
try :
25
- from quart .static import send_file # noqa # mypy#8823 # type: ignore[attr-defined]
25
+ from quart .static import send_file # type: ignore[attr-defined] # mypy#8823
26
26
except ImportError :
27
- from quart .helpers import send_file # noqa # mypy#8823 # type: ignore[attr-defined, no-redef] # mypy#1153
27
+ from quart .helpers import send_file # type: ignore[attr-defined, no-redef] # mypy#1153
28
28
29
29
try :
30
- from quart .exceptions import HTTPStatusException # noqa # mypy#8823 # type: ignore[attr-defined]
30
+ from quart .exceptions import HTTPStatusException # type: ignore[attr-defined]
31
31
except ImportError :
32
- from werkzeug .exceptions import InternalServerError as HTTPStatusException # noqa # mypy#8823 # type: ignore[no-redef] # mypy#1153
32
+ from werkzeug .exceptions import InternalServerError as HTTPStatusException # type: ignore[no-redef] # mypy#1153
33
33
34
34
app = Quart (__name__ )
35
35
Original file line number Diff line number Diff line change 23
23
try :
24
24
import websockets
25
25
except ImportError :
26
- websockets = None # noqa # type: ignore[assignment] # expression has type "None", variable has type Module
26
+ websockets = None # type: ignore[assignment] # expression has type "None", variable has type Module
27
27
28
28
from system_test import Qdrouterd
29
29
from system_test import main_module , TestCase , Process
Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ disable =
217
217
218
218
[mypy]
219
219
warn_redundant_casts = True
220
- warn_unused_ignores = True
220
+ # enable when wanting to clean up ignores
221
+ # warn_unused_ignores = True
221
222
222
223
# mypy cannot handle overridden attributes
223
224
# https://github.com/python/mypy/issues/7505
You can’t perform that action at this time.
0 commit comments