Skip to content

Commit 898a285

Browse files
Michael Waechtermeta-codesync[bot]
authored andcommitted
Migrate fbcode/mapillary to stubgen_binary_v2
Summary: Regenerate Python `.pyi` stubs after upgrading pybind11-stubgen from 0.2.0 (internal fork) to 2.5.5 (upstream). No functional change to the C++ bindings. Reviewed By: YaroslavHavrylovych Differential Revision: D99775516 fbshipit-source-id: 084128582eacb344f45b2bc3d7bbff92950fac58
1 parent 234ca40 commit 898a285

5 files changed

Lines changed: 562 additions & 278 deletions

File tree

opensfm/src/dense/pydense.pyi

Lines changed: 56 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -10,79 +10,101 @@
1010
# Ignore errors for [24] untyped generics.
1111
# pyre-ignore-all-errors[24]
1212

13+
from __future__ import annotations
14+
15+
import typing
16+
1317
import numpy
14-
from typing import *
1518

16-
__all__ = [
19+
__all__: list[str] = [
1720
"DepthmapCleaner",
1821
"DepthmapEstimator",
1922
"DepthmapPruner",
2023
"OpenMVSExporter",
21-
"StaticExtensionLoader",
2224
]
2325

2426
class DepthmapCleaner:
2527
def __init__(self) -> None: ...
2628
def add_view(
2729
self,
28-
arg0: numpy.typing.NDArray,
29-
arg1: numpy.typing.NDArray,
30-
arg2: numpy.typing.NDArray,
31-
arg3: numpy.typing.NDArray,
30+
arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
31+
arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
32+
arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
33+
arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.float32],
34+
) -> None: ...
35+
def clean(self) -> numpy.typing.NDArray[numpy.float32]: ...
36+
def set_min_consistent_views(
37+
self, arg0: typing.SupportsInt | typing.SupportsIndex
38+
) -> None: ...
39+
def set_same_depth_threshold(
40+
self, arg0: typing.SupportsFloat | typing.SupportsIndex
3241
) -> None: ...
33-
def clean(self) -> numpy.typing.NDArray: ...
34-
def set_min_consistent_views(self, arg0: int) -> None: ...
35-
def set_same_depth_threshold(self, arg0: float) -> None: ...
3642

3743
class DepthmapEstimator:
3844
def __init__(self) -> None: ...
3945
def add_view(
4046
self,
41-
arg0: numpy.typing.NDArray,
42-
arg1: numpy.typing.NDArray,
43-
arg2: numpy.typing.NDArray,
44-
arg3: numpy.typing.NDArray,
45-
arg4: numpy.typing.NDArray,
47+
arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
48+
arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
49+
arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
50+
arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8],
51+
arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8],
4652
) -> None: ...
4753
def compute_brute_force(self) -> list: ...
4854
def compute_patch_match(self) -> list: ...
4955
def compute_patch_match_sample(self) -> list: ...
50-
def set_depth_range(self, arg0: float, arg1: float, arg2: int) -> None: ...
51-
def set_min_patch_sd(self, arg0: float) -> None: ...
52-
def set_patch_size(self, arg0: int) -> None: ...
53-
def set_patchmatch_iterations(self, arg0: int) -> None: ...
56+
def set_depth_range(
57+
self,
58+
arg0: typing.SupportsFloat | typing.SupportsIndex,
59+
arg1: typing.SupportsFloat | typing.SupportsIndex,
60+
arg2: typing.SupportsInt | typing.SupportsIndex,
61+
) -> None: ...
62+
def set_min_patch_sd(
63+
self, arg0: typing.SupportsFloat | typing.SupportsIndex
64+
) -> None: ...
65+
def set_patch_size(
66+
self, arg0: typing.SupportsInt | typing.SupportsIndex
67+
) -> None: ...
68+
def set_patchmatch_iterations(
69+
self, arg0: typing.SupportsInt | typing.SupportsIndex
70+
) -> None: ...
5471

5572
class DepthmapPruner:
5673
def __init__(self) -> None: ...
5774
def add_view(
5875
self,
59-
arg0: numpy.typing.NDArray,
60-
arg1: numpy.typing.NDArray,
61-
arg2: numpy.typing.NDArray,
62-
arg3: numpy.typing.NDArray,
63-
arg4: numpy.typing.NDArray,
64-
arg5: numpy.typing.NDArray,
65-
arg6: numpy.typing.NDArray,
76+
arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
77+
arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
78+
arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
79+
arg3: typing.Annotated[numpy.typing.ArrayLike, numpy.float32],
80+
arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.float32],
81+
arg5: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8],
82+
arg6: typing.Annotated[numpy.typing.ArrayLike, numpy.uint8],
6683
) -> None: ...
6784
def prune(self) -> list: ...
68-
def set_same_depth_threshold(self, arg0: float) -> None: ...
85+
def set_same_depth_threshold(
86+
self, arg0: typing.SupportsFloat | typing.SupportsIndex
87+
) -> None: ...
6988

7089
class OpenMVSExporter:
7190
def __init__(self) -> None: ...
7291
def add_camera(
73-
self, arg0: str, arg1: numpy.typing.NDArray, arg2: int, arg3: int
92+
self,
93+
arg0: str,
94+
arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
95+
arg2: typing.SupportsInt | typing.SupportsIndex,
96+
arg3: typing.SupportsInt | typing.SupportsIndex,
97+
) -> None: ...
98+
def add_point(
99+
self, arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], arg1: list
74100
) -> None: ...
75-
def add_point(self, arg0: numpy.typing.NDArray, arg1: list) -> None: ...
76101
def add_shot(
77102
self,
78103
arg0: str,
79104
arg1: str,
80105
arg2: str,
81106
arg3: str,
82-
arg4: numpy.typing.NDArray,
83-
arg5: numpy.typing.NDArray,
107+
arg4: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
108+
arg5: typing.Annotated[numpy.typing.ArrayLike, numpy.float64],
84109
) -> None: ...
85110
def export(self, arg0: str) -> None: ...
86-
87-
class StaticExtensionLoader:
88-
pass

0 commit comments

Comments
 (0)