From d956342d706f6db5869aed821a49dd37dc20f373 Mon Sep 17 00:00:00 2001 From: Benjamin Schimke Date: Fri, 19 Apr 2024 11:08:08 +0200 Subject: [PATCH] disable mypy check for unknown keyword --- charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py | 2 +- charms/worker/k8s/src/charm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py b/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py index c5c2e731..938bc4c6 100644 --- a/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py +++ b/charms/worker/k8s/lib/charms/k8s/v0/k8sd_api_manager.py @@ -290,7 +290,7 @@ class UserFacingClusterConfig(BaseModel): metrics_server: MetricsServerConfig = Field(None, alias="metrics-server") -class UserFacingDatastoreConfig(BaseModel, allow_population_by_field_name=True): +class UserFacingDatastoreConfig(BaseModel, allow_population_by_field_name=True): # type: ignore[call-arg] """Aggregated configuration model for the user-facing datastore aspects of a cluster. Attributes: diff --git a/charms/worker/k8s/src/charm.py b/charms/worker/k8s/src/charm.py index 3ac1f31e..a226e5b7 100755 --- a/charms/worker/k8s/src/charm.py +++ b/charms/worker/k8s/src/charm.py @@ -368,7 +368,7 @@ def _enable_functionalities(self): K8sdConnectionError, ) def _ensure_cluster_config(self): - """Ensure that the cluster configuration is up-to-date + """Ensure that the cluster configuration is up-to-date. The snap will detect any changes and only perform necessary steps. There is no need to track changes in the charm.