Skip to content

Commit

Permalink
chore: update charm libraries (#158)
Browse files Browse the repository at this point in the history
Co-authored-by: Github Actions <github-actions@github.com>
  • Loading branch information
observability-noctua-bot and Github Actions authored May 9, 2023
1 parent 560261e commit 44efcb1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/charms/traefik_k8s/v1/ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def _on_ingress_revoked(self, event: IngressPerAppRevokedEvent):

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 12
LIBPATCH = 13

DEFAULT_RELATION_NAME = "ingress"
RELATION_INTERFACE = "ingress"
Expand Down Expand Up @@ -183,8 +183,8 @@ def _handle_upgrade_or_leader(self, event):


class _IPAEvent(RelationEvent):
__args__ = () # type: Tuple[str, ...]
__optional_kwargs__ = {} # type: Dict[str, Any]
__args__: Tuple[str, ...] = ()
__optional_kwargs__: Dict[str, Any] = {}

@classmethod
def __attrs__(cls):
Expand Down Expand Up @@ -229,11 +229,11 @@ class IngressPerAppDataProvidedEvent(_IPAEvent):
__args__ = ("name", "model", "port", "host", "strip_prefix")

if typing.TYPE_CHECKING:
name = None # type: Optional[str]
model = None # type: Optional[str]
port = None # type: Optional[str]
host = None # type: Optional[str]
strip_prefix = False # type: bool
name: Optional[str] = None
model: Optional[str] = None
port: Optional[str] = None
host: Optional[str] = None
strip_prefix: bool = False


class IngressPerAppDataRemovedEvent(RelationEvent):
Expand Down Expand Up @@ -305,7 +305,7 @@ def _get_requirer_data(self, relation: Relation) -> RequirerData: # type: ignor
return {}

databag = relation.data[relation.app]
remote_data = {} # type: Dict[str, Union[int, str]]
remote_data: Dict[str, Union[int, str]] = {}
for k in ("port", "host", "model", "name", "mode", "strip-prefix"):
v = databag.get(k)
if v is not None:
Expand Down Expand Up @@ -387,7 +387,7 @@ class IngressPerAppReadyEvent(_IPAEvent):

__args__ = ("url",)
if typing.TYPE_CHECKING:
url = None # type: Optional[str]
url: Optional[str] = None


class IngressPerAppRevokedEvent(RelationEvent):
Expand Down

0 comments on commit 44efcb1

Please sign in to comment.