apply new formatting config

Summary:
pyfmt now specifies a target Python version of 3.8 when formatting
with black. With this new config, black adds trailing commas to all
multiline function calls. This applies the new formatting as part
of rolling out the linttool-integration for pyfmt.

paintitblack

Reviewed By: zertosh, lisroach

Differential Revision: D37084377

fbshipit-source-id: 781a1b883a381a172e54d6e447137657977876b4
This commit is contained in:
John Reese 2022-06-10 16:04:56 -07:00 committed by Facebook GitHub Bot
parent 023a2369ae
commit ea4f3260e4
6 changed files with 6 additions and 6 deletions

View File

@ -377,7 +377,7 @@ class R2N2(ShapeNetBase): # pragma: no cover
view_idxs: Optional[List[int]] = None,
shader_type=HardPhongShader,
device: Device = "cpu",
**kwargs
**kwargs,
) -> torch.Tensor:
"""
Render models with BlenderCamera by default to achieve the same orientations as the

View File

@ -113,7 +113,7 @@ class ShapeNetBase(torch.utils.data.Dataset): # pragma: no cover
idxs: Optional[List[int]] = None,
shader_type=HardPhongShader,
device: Device = "cpu",
**kwargs
**kwargs,
) -> torch.Tensor:
"""
If a list of model_ids are supplied, render all the objects by the given model_ids.

View File

@ -30,7 +30,7 @@ class FeatureExtractorBase(ReplaceableBase, torch.nn.Module):
self,
imgs: Optional[torch.Tensor],
masks: Optional[torch.Tensor] = None,
**kwargs
**kwargs,
) -> Dict[Any, torch.Tensor]:
"""
Args:

View File

@ -109,7 +109,7 @@ class MultiPassEmissionAbsorptionRenderer( # pyre-ignore: 13
ray_bundle: RayBundle,
implicit_functions: List[ImplicitFunctionWrapper] = [],
evaluation_mode: EvaluationMode = EvaluationMode.EVALUATION,
**kwargs
**kwargs,
) -> RendererOutput:
"""
Args:

View File

@ -75,7 +75,7 @@ def render_point_cloud_pytorch3d(
eps: float = 1e-2,
bg_color=None,
bin_size: Optional[int] = None,
**kwargs
**kwargs,
):
# feature dimension

View File

@ -176,7 +176,7 @@ class ImplicitRenderer(torch.nn.Module):
rays_densities=rays_densities,
rays_features=rays_features,
ray_bundle=ray_bundle,
**kwargs
**kwargs,
)
# images - minibatch x ... x (feature_dim + opacity_dim)