Skip to content

Commit 537275b

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
Clean up errors and remove unused ignores] [batch:134/562] [shard:2/N]
Reviewed By: MaggieMoss Differential Revision: D64684764 fbshipit-source-id: 38998fde328826e2dcc951552b98a310a3e4e816
1 parent c8eb66b commit 537275b

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

annotation_gui_gcp/lib/GUI.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
from collections import defaultdict
88

99
import flask
10+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.cad_view`.
1011
from annotation_gui_gcp.lib.views.cad_view import CADView
12+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.cp_finder_view`.
1113
from annotation_gui_gcp.lib.views.cp_finder_view import ControlPointFinderView
14+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.image_view`.
1215
from annotation_gui_gcp.lib.views.image_view import ImageView
16+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.tools_view`.
1317
from annotation_gui_gcp.lib.views.tools_view import ToolsView
1418
from opensfm import dataset
1519

annotation_gui_gcp/lib/views/cad_view.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from typing import Any, Dict, Tuple
66

77
import rasterio
8+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`.
89
from annotation_gui_gcp.lib.views.web_view import WebView, distinct_colors
910
from flask import send_file
1011
from PIL import ImageColor
@@ -23,6 +24,7 @@ def _load_georeference_metadata(path_cad_model) -> Dict[str, Any]:
2324
return metadata
2425

2526

27+
# pyre-fixme[11]: Annotation `WebView` is not defined as a type.
2628
class CADView(WebView):
2729
def __init__(
2830
self,
@@ -32,6 +34,7 @@ def __init__(
3234
path_cad_file,
3335
is_geo_reference=False,
3436
)-> None:
37+
# pyre-fixme[19]: Expected 0 positional arguments.
3538
super().__init__(main_ui, web_app, route_prefix)
3639

3740
self.main_ui = main_ui
@@ -42,6 +45,7 @@ def __init__(
4245
self.load_georeference_metadata(path_cad_file)
4346
self.is_geo_reference = is_geo_reference
4447

48+
# pyre-fixme[16]: `CADView` has no attribute `app`.
4549
self.app.add_url_rule(
4650
f"{route_prefix}/model",
4751
f"{route_prefix}_model",
@@ -100,6 +104,7 @@ def display_points(self) -> None:
100104

101105
def refocus(self, lat, lon)->None:
102106
x, y, z = self.latlon_to_xyz(lat, lon)
107+
# pyre-fixme[16]: `CADView` has no attribute `send_sse_message`.
103108
self.send_sse_message(
104109
{"x": x, "y": y, "z": z},
105110
event_type="move_camera",
@@ -166,4 +171,5 @@ def sync_to_client(self)->None:
166171
point_id
167172
]
168173

174+
# pyre-fixme[16]: `CADView` has no attribute `send_sse_message`.
169175
self.send_sse_message(data)

annotation_gui_gcp/lib/views/cp_finder_view.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# pyre-unsafe
22
import typing as t
33

4+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.image_view`.
45
from annotation_gui_gcp.lib.views.image_view import ImageView
56

67

8+
# pyre-fixme[11]: Annotation `ImageView` is not defined as a type.
79
class ControlPointFinderView(ImageView):
810
def __init__(
911
self,
@@ -18,6 +20,7 @@ def template_name(self):
1820

1921
def get_candidate_images(self) -> t.List[str]:
2022
images_in_existing_views = []
23+
# pyre-fixme[16]: `ControlPointFinderView` has no attribute `main_ui`.
2124
for v in self.main_ui.sequence_views:
2225
images_in_existing_views.extend(v.image_list)
2326

annotation_gui_gcp/lib/views/image_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# pyre-unsafe
22
from typing import Dict, Any
33

4+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`.
45
from annotation_gui_gcp.lib.views.web_view import WebView, distinct_colors
56

67

@@ -9,6 +10,7 @@ def point_color(point_id: str) -> str:
910
return hex_color
1011

1112

13+
# pyre-fixme[11]: Annotation `WebView` is not defined as a type.
1214
class ImageView(WebView):
1315
def __init__(
1416
self,

annotation_gui_gcp/lib/views/tools_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# pyre-unsafe
22
from typing import Dict, Any
33

4+
# pyre-fixme[21]: Could not find module `annotation_gui_gcp.lib.views.web_view`.
45
from annotation_gui_gcp.lib.views.web_view import WebView
56

67

8+
# pyre-fixme[11]: Annotation `WebView` is not defined as a type.
79
class ToolsView(WebView):
810
def __init__(self, main_ui, web_app):
911
super().__init__(main_ui, web_app, "/tools")

0 commit comments

Comments
 (0)