fixes ruff errors

This commit is contained in:
Mose Müller 2024-08-20 13:14:03 +02:00
parent f76703340c
commit a2effca2b0
2 changed files with 4 additions and 7 deletions

View File

@ -48,8 +48,8 @@ class WebServer:
Args: Args:
data_service_observer: data_service_observer:
Observer for the [`DataService`][pydase.DataService], handling state updates and communication to Observer for the [`DataService`][pydase.DataService], handling state updates
connected clients. and communication to connected clients.
host: host:
Hostname or IP address where the server is accessible. Commonly '0.0.0.0' Hostname or IP address where the server is accessible. Commonly '0.0.0.0'
to bind to all network interfaces. to bind to all network interfaces.
@ -64,7 +64,8 @@ class WebServer:
cross-origin requests. Defaults to True. cross-origin requests. Defaults to True.
config_dir: config_dir:
Path to the configuration directory where the web settings will be stored. Path to the configuration directory where the web settings will be stored.
Defaults to [`ServiceConfig().config_dir`][pydase.config.ServiceConfig.config_dir]. Defaults to
[`ServiceConfig().config_dir`][pydase.config.ServiceConfig.config_dir].
generate_web_settings: generate_web_settings:
Flag to enable or disable generation of new web settings if the Flag to enable or disable generation of new web settings if the
configuration file is missing. Defaults to configuration file is missing. Defaults to

View File

@ -19,10 +19,6 @@ if TYPE_CHECKING:
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
import json
json.loads
class Deserializer: class Deserializer:
@classmethod @classmethod