diff --git a/annotation_gui_gcp/lib/GUI.py b/annotation_gui_gcp/lib/GUI.py index 9f5ee59b4..2ca3822a6 100644 --- a/annotation_gui_gcp/lib/GUI.py +++ b/annotation_gui_gcp/lib/GUI.py @@ -7,14 +7,10 @@ from collections import defaultdict import flask -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.cad_view`. -from annotation_gui_gcp.lib.views.cad_view import CADView -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.cp_finder_view`. -from annotation_gui_gcp.lib.views.cp_finder_view import ControlPointFinderView -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.image_view`. -from annotation_gui_gcp.lib.views.image_view import ImageView -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.tools_view`. -from annotation_gui_gcp.lib.views.tools_view import ToolsView +from .views.cad_view import CADView +from .views.cp_finder_view import ControlPointFinderView +from .views.image_view import ImageView +from .views.tools_view import ToolsView from opensfm import dataset diff --git a/annotation_gui_gcp/lib/views/cad_view.py b/annotation_gui_gcp/lib/views/cad_view.py index 5671ab41e..d5f79e930 100644 --- a/annotation_gui_gcp/lib/views/cad_view.py +++ b/annotation_gui_gcp/lib/views/cad_view.py @@ -5,8 +5,7 @@ from typing import Any, Dict, Tuple import rasterio -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`. -from annotation_gui_gcp.lib.views.web_view import WebView, distinct_colors +from ..views.web_view import WebView, distinct_colors from flask import send_file from PIL import ImageColor @@ -24,7 +23,6 @@ def _load_georeference_metadata(path_cad_model) -> Dict[str, Any]: return metadata -# pyre-fixme[11]: Annotation `WebView` is not defined as a type. class CADView(WebView): def __init__( self, diff --git a/annotation_gui_gcp/lib/views/cp_finder_view.py b/annotation_gui_gcp/lib/views/cp_finder_view.py index 23cd529e9..cee24084f 100644 --- a/annotation_gui_gcp/lib/views/cp_finder_view.py +++ b/annotation_gui_gcp/lib/views/cp_finder_view.py @@ -1,11 +1,9 @@ # pyre-unsafe import typing as t -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.image_view`. -from annotation_gui_gcp.lib.views.image_view import ImageView +from .image_view import ImageView -# pyre-fixme[11]: Annotation `ImageView` is not defined as a type. class ControlPointFinderView(ImageView): def __init__( self, diff --git a/annotation_gui_gcp/lib/views/image_view.py b/annotation_gui_gcp/lib/views/image_view.py index 8e6d9d1c6..ec20e7543 100644 --- a/annotation_gui_gcp/lib/views/image_view.py +++ b/annotation_gui_gcp/lib/views/image_view.py @@ -1,8 +1,7 @@ # pyre-unsafe from typing import Dict, Any -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`. -from annotation_gui_gcp.lib.views.web_view import WebView, distinct_colors +from .web_view import WebView, distinct_colors def point_color(point_id: str) -> str: diff --git a/annotation_gui_gcp/lib/views/tools_view.py b/annotation_gui_gcp/lib/views/tools_view.py index c3048a391..a0d5fb223 100644 --- a/annotation_gui_gcp/lib/views/tools_view.py +++ b/annotation_gui_gcp/lib/views/tools_view.py @@ -1,11 +1,9 @@ # pyre-unsafe from typing import Dict, Any -# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`. -from annotation_gui_gcp.lib.views.web_view import WebView +from .web_view import WebView -# pyre-fixme[11]: Annotation `WebView` is not defined as a type. class ToolsView(WebView): def __init__(self, main_ui, web_app): super().__init__(main_ui, web_app, "/tools")