Annotate dunder functions

Summary: Annotate the (return type of the) following dunder functions across the codebase: `__init__()`, `__len__()`, `__getitem__()`

Reviewed By: nikhilaravi

Differential Revision: D29001801

fbshipit-source-id: 928d9e1c417ffe01ab8c0445311287786e997c7c
This commit is contained in:
Patrick Labatut
2021-06-24 15:18:19 -07:00
committed by Facebook GitHub Bot
parent 35855bf860
commit 64289a491d
35 changed files with 79 additions and 79 deletions

View File

@@ -49,7 +49,7 @@ class EmissionAbsorptionRaymarcher(torch.nn.Module):
elements along the ray direction.
"""
def __init__(self, surface_thickness: int = 1):
def __init__(self, surface_thickness: int = 1) -> None:
"""
Args:
surface_thickness: Denotes the overlap between the absorption
@@ -128,7 +128,7 @@ class AbsorptionOnlyRaymarcher(torch.nn.Module):
It then returns `opacities = 1 - total_transmission`.
"""
def __init__(self):
def __init__(self) -> None:
super().__init__()
def forward(