Skip to content

Commit 61450eb

Browse files
[MISC] Refresh all charm libs (#578)
1 parent 40f80f0 commit 61450eb

File tree

10 files changed

+584
-465
lines changed

10 files changed

+584
-465
lines changed

lib/charms/data_platform_libs/v0/data_interfaces.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _on_topic_requested(self, event: TopicRequestedEvent):
331331

332332
# Increment this PATCH version before using `charmcraft publish-lib` or reset
333333
# to 0 if you are raising the major API version
334-
LIBPATCH = 40
334+
LIBPATCH = 41
335335

336336
PYDEPS = ["ops>=2.0.0"]
337337

@@ -609,7 +609,7 @@ def get_group(self, group: str) -> Optional[SecretGroup]:
609609
class CachedSecret:
610610
"""Locally cache a secret.
611611
612-
The data structure is precisely re-using/simulating as in the actual Secret Storage
612+
The data structure is precisely reusing/simulating as in the actual Secret Storage
613613
"""
614614

615615
KNOWN_MODEL_ERRORS = [MODEL_ERRORS["no_label_and_uri"], MODEL_ERRORS["owner_no_refresh"]]
@@ -2363,7 +2363,6 @@ def _update_relation_data(self, relation: Relation, data: Dict[str, str]) -> Non
23632363
def _delete_relation_data(self, relation: Relation, fields: List[str]) -> None:
23642364
"""Delete data available (directily or indirectly -- i.e. secrets) from the relation for owner/this_app."""
23652365
if self.secret_fields and self.deleted_label:
2366-
23672366
_, normal_fields = self._process_secret_fields(
23682367
relation,
23692368
self.secret_fields,

lib/charms/data_platform_libs/v0/data_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class MergedDataBag(ProviderDataBag, RequirerDataBag):
168168

169169
# Increment this PATCH version before using `charmcraft publish-lib` or reset
170170
# to 0 if you are raising the major API version
171-
LIBPATCH = 4
171+
LIBPATCH = 5
172172

173173
PYDEPS = ["ops>=2.0.0", "pydantic>=1.10,<2"]
174174

@@ -209,7 +209,7 @@ def validate_params(cls: Type[T]):
209209
"""
210210

211211
def decorator(
212-
f: Callable[[CharmBase, ActionEvent, Union[T, ValidationError]], G]
212+
f: Callable[[CharmBase, ActionEvent, Union[T, ValidationError]], G],
213213
) -> Callable[[CharmBase, ActionEvent], G]:
214214
@wraps(f)
215215
def event_wrapper(self: CharmBase, event: ActionEvent):
@@ -287,7 +287,7 @@ def decorator(
287287
Optional[Union[UnitModel, ValidationError]],
288288
],
289289
G,
290-
]
290+
],
291291
) -> Callable[[CharmBase, RelationEvent], G]:
292292
@wraps(f)
293293
def event_wrapper(self: CharmBase, event: RelationEvent):

lib/charms/data_platform_libs/v0/data_secrets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Increment this PATCH version before using `charmcraft publish-lib` or reset
1919
# to 0 if you are raising the major API version
20-
LIBPATCH = 2
20+
LIBPATCH = 3
2121

2222

2323
APP_SCOPE = "app"
@@ -50,7 +50,7 @@ def generate_secret_label(charm: CharmBase, scope: Scopes) -> str:
5050
class CachedSecret:
5151
"""Abstraction layer above direct Juju access with caching.
5252
53-
The data structure is precisely re-using/simulating Juju Secrets behavior, while
53+
The data structure is precisely reusing/simulating Juju Secrets behavior, while
5454
also making sure not to fetch a secret multiple times within the same event scope.
5555
"""
5656

0 commit comments

Comments
 (0)