Skip to content

Commit

Permalink
More permissive input annotations for get_render()
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 21, 2024
1 parent 4fe9d42 commit 5a96e1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/viser/_viser.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ def get_render(
height: int,
width: int,
*,
wxyz: tuple[float, float, float, float],
position: tuple[float, float, float],
wxyz: tuple[float, float, float, float] | np.ndarray,
position: tuple[float, float, float] | np.ndarray,
fov: float,
transport_format: Literal["png", "jpeg"] = "jpeg",
) -> np.ndarray: ...
Expand All @@ -453,8 +453,8 @@ def get_render(
height: int,
width: int,
*,
wxyz: tuple[float, float, float, float] | None = None,
position: tuple[float, float, float] | None = None,
wxyz: tuple[float, float, float, float] | np.ndarray | None = None,
position: tuple[float, float, float] | np.ndarray | None = None,
fov: float | None = None,
transport_format: Literal["png", "jpeg"] = "jpeg",
) -> np.ndarray:
Expand Down

0 comments on commit 5a96e1e

Please sign in to comment.