Fix typing errors (#229)

This commit is contained in:
Matthew Tancik authored and GitHub committed 2022-07-29 14:17:38 -07:00
1 parent be001e8ebe
commit 58212543f5
30 files changed
+236 -147

No files matched your search

+2 -1
View File
@@ -16,6 +16,7 @@
The field module baseclass.
"""
from abc import abstractmethod
from typing import Optional
from torch import nn
from torchtyping import TensorType
@@ -29,7 +30,7 @@ class FieldModule(nn.Module):
out_dim (int, optional): Ouput dimension to module.
"""
def __init__(self, in_dim: int = None, out_dim: int = None) -> None:
def __init__(self, in_dim: Optional[int] = None, out_dim: Optional[int] = None) -> None:
super().__init__()
self.in_dim = in_dim
self.out_dim = out_dim