diff --git a/bec_widgets/cli/client.py b/bec_widgets/cli/client.py index 2b9e7c44..ceafd335 100644 --- a/bec_widgets/cli/client.py +++ b/bec_widgets/cli/client.py @@ -5,6 +5,8 @@ from typing import Literal, Optional, overload from bec_widgets.cli.client_utils import BECGuiClientMixin, RPCBase, rpc_call +# pylint: skip-file + class Widgets(str, enum.Enum): """ diff --git a/bec_widgets/cli/generate_cli.py b/bec_widgets/cli/generate_cli.py index 67ea7f57..4ae5d37c 100644 --- a/bec_widgets/cli/generate_cli.py +++ b/bec_widgets/cli/generate_cli.py @@ -22,8 +22,10 @@ else: "If you want to use the real function 'typing.get_overloads()', please use Python 3.11 or later." ) - def get_overloads(obj): - # Dummy function for Python versions before 3.11 + def get_overloads(_obj): + """ + Dummy function for Python versions before 3.11. + """ return [] @@ -33,7 +35,9 @@ class ClientGenerator: import enum from typing import Literal, Optional, overload -from bec_widgets.cli.client_utils import RPCBase, rpc_call, BECGuiClientMixin""" +from bec_widgets.cli.client_utils import RPCBase, rpc_call, BECGuiClientMixin + +# pylint: skip-file""" self.content = "" @@ -73,11 +77,6 @@ class Widgets(str, enum.Enum): """ class_name = cls.__name__ - module = cls.__module__ - - # Generate the header - # self.header += f""" - # from {module} import {class_name}""" # Generate the content if cls.__name__ == "BECDockArea":