From 53e077c08e690ab717acacb96eaa4e290173dbf9 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 25 Nov 2020 11:32:16 +0000 Subject: [PATCH] Global mypy ignore_missing_imports = True --- mypy.ini | 2 ++ src/labthings/apispec/plugins.py | 4 ++-- src/labthings/labthing.py | 4 ++-- src/labthings/marshalling/args.py | 2 +- src/labthings/quick.py | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000..1215375e --- /dev/null +++ b/mypy.ini @@ -0,0 +1,2 @@ +[mypy] +ignore_missing_imports = True \ No newline at end of file diff --git a/src/labthings/apispec/plugins.py b/src/labthings/apispec/plugins.py index db3e1a20..7d9459b6 100644 --- a/src/labthings/apispec/plugins.py +++ b/src/labthings/apispec/plugins.py @@ -1,8 +1,8 @@ import re -from apispec import BasePlugin # type: ignore +from apispec import BasePlugin -from apispec.ext.marshmallow import ( # type: ignore +from apispec.ext.marshmallow import ( MarshmallowPlugin as _MarshmallowPlugin, ) from apispec.ext.marshmallow import OpenAPIConverter diff --git a/src/labthings/labthing.py b/src/labthings/labthing.py index 911da19a..f6ac457e 100644 --- a/src/labthings/labthing.py +++ b/src/labthings/labthing.py @@ -3,8 +3,8 @@ import weakref from typing import Any, Dict, List, Optional, Set, Tuple, Type -from apispec import APISpec # type: ignore -from apispec_webframeworks.flask import FlaskPlugin # type: ignore +from apispec import APISpec +from apispec_webframeworks.flask import FlaskPlugin from flask import url_for from .actions.pool import Pool diff --git a/src/labthings/marshalling/args.py b/src/labthings/marshalling/args.py index 117204b1..b766b265 100644 --- a/src/labthings/marshalling/args.py +++ b/src/labthings/marshalling/args.py @@ -4,7 +4,7 @@ from flask import abort, request from marshmallow.exceptions import ValidationError -from webargs import flaskparser # type: ignore +from webargs import flaskparser from ..fields import Field from ..schema import FieldSchema, Schema diff --git a/src/labthings/quick.py b/src/labthings/quick.py index 95d797f9..b148f2d8 100644 --- a/src/labthings/quick.py +++ b/src/labthings/quick.py @@ -1,5 +1,5 @@ from flask import Flask -from flask_cors import CORS # type: ignore +from flask_cors import CORS from .labthing import LabThing