From b9a14c17936ef4ed9daafa1182d82383bb593375 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 11 Apr 2023 21:13:29 +0200 Subject: [PATCH] Fix type error: no attribute "thickness" [attr-defined] --- boxes/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boxes/__init__.py b/boxes/__init__.py index 77ac14f..77c45ce 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -312,6 +312,9 @@ class Boxes: "cli_short" : "", } + # Dummy attribute for static analytic tools. Will be overwritten by `argparser` at runtime. + self.thickness: float = 0.0 + self.argparser._action_groups[1].title = self.__class__.__name__ + " Settings" defaultgroup = self.argparser.add_argument_group( "Default Settings")