[ci] Deprecate flake8 (#8409)

* [ci] Deprecate flake8

* Addressing @villebro's comments
This commit is contained in:
John Bodley
2019-10-18 14:44:27 -07:00
committed by Maxime Beauchemin
parent a19990185d
commit 9fc37ea9f1
234 changed files with 702 additions and 647 deletions

View File

@@ -14,12 +14,11 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
from typing import Optional
from typing import Optional, Type
from . import base # noqa
from . import presto_db # noqa
from .base import SQLValidationAnnotation # noqa
from . import base, presto_db
from .base import SQLValidationAnnotation
def get_validator_by_name(name: str) -> Optional[base.BaseSQLValidator]:
def get_validator_by_name(name: str) -> Optional[Type[base.BaseSQLValidator]]:
return {"PrestoDBSQLValidator": presto_db.PrestoDBSQLValidator}.get(name)