Skip to content

Commit

Permalink
Fix the typing for a Camera helper function
Browse files Browse the repository at this point in the history
Summary: Fixed the typing for try_get_projection_transform.

Reviewed By: kjchalup

Differential Revision: D39211811

fbshipit-source-id: ef05c6b545831d1a9f3c754aeb02fb9776e360ed
  • Loading branch information
davidsonic authored and facebook-github-bot committed Sep 1, 2022
1 parent c80e5fd commit 84fa966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytorch3d/renderer/cameras.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import math
import warnings
from typing import Callable, List, Optional, Sequence, Tuple, Union
from typing import List, Optional, Sequence, Tuple, Union

import numpy as np
import torch
Expand Down Expand Up @@ -1851,7 +1851,7 @@ def get_screen_to_ndc_transform(
return transform


def try_get_projection_transform(cameras, kwargs) -> Optional[Callable]:
def try_get_projection_transform(cameras: CamerasBase, kwargs) -> Optional[Transform3d]:
"""
Try block to get projection transform.
Expand Down

0 comments on commit 84fa966

Please sign in to comment.