From 8fe205bd29532709adfd8c7eb18c7b2eeaad0155 Mon Sep 17 00:00:00 2001 From: Tim Rid <6593626+timrid@users.noreply.github.com> Date: Sun, 13 Feb 2022 00:58:58 +0100 Subject: [PATCH] Removed kwargs, so that wrong parameters are marked by pylance --- construct_typed/attrs_struct.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/construct_typed/attrs_struct.py b/construct_typed/attrs_struct.py index 4f34288..86f6d99 100644 --- a/construct_typed/attrs_struct.py +++ b/construct_typed/attrs_struct.py @@ -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")