Removed kwargs, so that wrong parameters are marked by pylance

This commit is contained in:
Tim Rid 2022-02-13 00:58:58 +01:00
parent 2248e84f4a
commit 8fe205bd29

View file

@ -200,10 +200,7 @@ class AttrsStruct:
cls,
constr: "cs.Construct[t.Any, t.Any]" = this_struct,
reverse_fields: bool = False,
**kwargs: t.Any,
):
super().__init_subclass__(**kwargs)
# validate types
if not isinstance(constr, cs.Construct): # type: ignore
raise ValueError("`constr` parameter has to be an `Construct` object")