Skip to content

Commit

Permalink
use proper lib
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas committed Oct 30, 2023
1 parent 19764f1 commit 67d21f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/charms/smtp_integrator/v0/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def __init__(self, *args):

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

# pylint: disable=wrong-import-position
import logging
from enum import Enum
from typing import Optional
from typing import Dict, List, Optional

import ops
from pydantic import BaseModel, Field, ValidationError
Expand Down Expand Up @@ -125,7 +125,7 @@ class SmtpRelationData(BaseModel):
transport_security: TransportSecurity
domain: Optional[str]

def to_relation_data(self) -> dict[str, str]:
def to_relation_data(self) -> Dict[str, str]:
"""Convert an instance of SmtpRelationData to the relation representation.
Returns:
Expand Down Expand Up @@ -306,7 +306,7 @@ def __init__(self, charm: ops.CharmBase, relation_name: str = DEFAULT_RELATION_N
self.relation_name = relation_name

@property
def relations(self) -> list[ops.Relation]:
def relations(self) -> List[ops.Relation]:
"""The list of Relation instances associated with this relation_name.
Returns:
Expand Down

0 comments on commit 67d21f5

Please sign in to comment.