mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
refactor: disabled pylint for auto-gen client
This commit is contained in:
@ -5,6 +5,8 @@ from typing import Literal, Optional, overload
|
|||||||
|
|
||||||
from bec_widgets.cli.client_utils import BECGuiClientMixin, RPCBase, rpc_call
|
from bec_widgets.cli.client_utils import BECGuiClientMixin, RPCBase, rpc_call
|
||||||
|
|
||||||
|
# pylint: skip-file
|
||||||
|
|
||||||
|
|
||||||
class Widgets(str, enum.Enum):
|
class Widgets(str, enum.Enum):
|
||||||
"""
|
"""
|
||||||
|
@ -22,8 +22,10 @@ else:
|
|||||||
"If you want to use the real function 'typing.get_overloads()', please use Python 3.11 or later."
|
"If you want to use the real function 'typing.get_overloads()', please use Python 3.11 or later."
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_overloads(obj):
|
def get_overloads(_obj):
|
||||||
# Dummy function for Python versions before 3.11
|
"""
|
||||||
|
Dummy function for Python versions before 3.11.
|
||||||
|
"""
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,9 @@ class ClientGenerator:
|
|||||||
import enum
|
import enum
|
||||||
from typing import Literal, Optional, overload
|
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 = ""
|
self.content = ""
|
||||||
|
|
||||||
@ -73,11 +77,6 @@ class Widgets(str, enum.Enum):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
class_name = cls.__name__
|
class_name = cls.__name__
|
||||||
module = cls.__module__
|
|
||||||
|
|
||||||
# Generate the header
|
|
||||||
# self.header += f"""
|
|
||||||
# from {module} import {class_name}"""
|
|
||||||
|
|
||||||
# Generate the content
|
# Generate the content
|
||||||
if cls.__name__ == "BECDockArea":
|
if cls.__name__ == "BECDockArea":
|
||||||
|
Reference in New Issue
Block a user