Skip to content

Commit 17a8d98

Browse files
use *args, **kwargs in __new__
1 parent 9060007 commit 17a8d98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

novae/model.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def __repr__(self) -> str:
126126
}
127127
return utils.pretty_model_repr(info_dict)
128128

129-
def __new__(cls) -> "Novae":
130-
return super().__new__(cls) # trick to enable auto-completion despite PyTorchModelHubMixin inheritance
129+
def __new__(cls, *args, **kwargs) -> "Novae":
130+
# trick to enable auto-completion despite PyTorchModelHubMixin inheritance
131+
return super().__new__(cls, *args, **kwargs)
131132

132133
@property
133134
def datamodule(self) -> NovaeDatamodule:

0 commit comments

Comments
 (0)