diff --git a/gen/gen.py b/gen/gen.py index 4f15521..e78c872 100644 --- a/gen/gen.py +++ b/gen/gen.py @@ -1,5 +1,5 @@ -from pathlib import Path import re +from pathlib import Path HEADER = '''""" This file was generated by a script. Any manual changes might be overwritten. diff --git a/midas/checker/checker.py b/midas/checker/checker.py index b14c406..20f8c9c 100644 --- a/midas/checker/checker.py +++ b/midas/checker/checker.py @@ -1,5 +1,5 @@ -from dataclasses import dataclass import logging +from dataclasses import dataclass from pathlib import Path from typing import Optional diff --git a/midas/cli/highlighter.py b/midas/cli/highlighter.py index 48d71d7..36aed8d 100644 --- a/midas/cli/highlighter.py +++ b/midas/cli/highlighter.py @@ -4,9 +4,9 @@ from abc import ABC, abstractmethod from pathlib import Path from typing import Generic, Optional, Protocol, TextIO, TypeVar -from midas.ast.location import Location import midas.ast.midas as m import midas.ast.python as p +from midas.ast.location import Location H = TypeVar("H", bound="Highlighter", contravariant=True) diff --git a/midas/parser/python.py b/midas/parser/python.py index d580bda..8966fc2 100644 --- a/midas/parser/python.py +++ b/midas/parser/python.py @@ -2,7 +2,6 @@ import ast from typing import Optional from midas.ast.location import Location - from midas.ast.python import ( AssignStmt, BaseType,