Skip to content

Commit c8205e4

Browse files
generatedunixname89002005307016meta-codesync[bot]
authored andcommitted
Remove unused type error suppressions - mapillary
Reviewed By: maggiemoss Differential Revision: D97328349 fbshipit-source-id: d94cb199226d98153682289f1d792f57e6807840
1 parent 1456056 commit c8205e4

File tree

3 files changed

+2
-35
lines changed

3 files changed

+2
-35
lines changed

opensfm/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
logger: logging.Logger = logging.getLogger(__name__)
2929

30-
JSONType = Any # pyre-ignore[33]
30+
JSONType = Any
3131

3232

3333
def camera_from_json(key: str, obj: Dict[str, Any]) -> pygeometry.Camera:

opensfm/reconstruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def two_view_reconstruction_5pt(
483483
return R_5p, t_5p, inliers_5p
484484

485485

486-
def two_view_reconstruction_general( # pyre-ignore[3]: pyre is not happy with the Dict[str, Any]
486+
def two_view_reconstruction_general(
487487
p1: NDArray,
488488
p2: NDArray,
489489
camera1: pygeometry.Camera,

opensfm/transformations.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,56 +1208,23 @@ def euler_from_matrix(
12081208

12091209
M = numpy.asarray(matrix, dtype=numpy.float64)[:3, :3]
12101210
if repetition:
1211-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any, dtype[Any]],
1212-
# tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[Union[int, str],
1213-
# int]`.
12141211
sy = math.sqrt(M[i, j] * M[i, j] + M[i, k] * M[i, k])
12151212
if sy > _EPS:
1216-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1217-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got
1218-
# `Tuple[Union[int, str], int]`.
12191213
ax = math.atan2(M[i, j], M[i, k])
1220-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1221-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got
1222-
# `Tuple[Union[int, str], Union[int, str]]`.
12231214
ay = math.atan2(sy, M[i, i])
1224-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1225-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[int,
1226-
# Union[int, str]]`.
12271215
az = math.atan2(M[j, i], -M[k, i])
12281216
else:
12291217
ax = math.atan2(-M[j, k], M[j, j])
1230-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1231-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got
1232-
# `Tuple[Union[int, str], Union[int, str]]`.
12331218
ay = math.atan2(sy, M[i, i])
12341219
az = 0.0
12351220
else:
1236-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any, dtype[Any]],
1237-
# tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[Union[int, str],
1238-
# Union[int, str]]`.
1239-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any, dtype[Any]],
1240-
# tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[int, Union[int,
1241-
# str]]`.
12421221
cy = math.sqrt(M[i, i] * M[i, i] + M[j, i] * M[j, i])
12431222
if cy > _EPS:
12441223
ax = math.atan2(M[k, j], M[k, k])
1245-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1246-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[int,
1247-
# Union[int, str]]`.
12481224
ay = math.atan2(-M[k, i], cy)
1249-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1250-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[int,
1251-
# Union[int, str]]`.
1252-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1253-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got
1254-
# `Tuple[Union[int, str], Union[int, str]]`.
12551225
az = math.atan2(M[j, i], M[i, i])
12561226
else:
12571227
ax = math.atan2(-M[j, k], M[j, j])
1258-
# pyre-fixme[6]: For 1st argument expected `Union[ndarray[Any,
1259-
# dtype[Any]], tuple[ndarray[Any, dtype[Any]], ...]]` but got `Tuple[int,
1260-
# Union[int, str]]`.
12611228
ay = math.atan2(-M[k, i], cy)
12621229
az = 0.0
12631230

0 commit comments

Comments
 (0)