Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlambson committed Jun 30, 2024
1 parent 47222ae commit e9fe44c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/mailpit/testcontainers/mailpit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import tempfile
from datetime import datetime, timedelta, timezone
from typing import NamedTuple, Self
from typing import TYPE_CHECKING, NamedTuple

from cryptography import x509
from cryptography.hazmat.primitives import hashes, serialization
Expand All @@ -28,6 +28,11 @@
from testcontainers.core.container import DockerContainer
from testcontainers.core.waiting_utils import wait_for_logs

if TYPE_CHECKING:
from typing_extensions import ParamSpec, Self

P = ParamSpec("P")


class MailpitUser(NamedTuple):
"""Mailpit user for authentication"""
Expand All @@ -36,7 +41,7 @@ class MailpitUser(NamedTuple):
password: str


class MailpitContainer(DockerContainer): # type: ignore[misc]
class MailpitContainer(DockerContainer):
"""
Test container for Mailpit. The example below spins up a Mailpit server
Expand Down

0 comments on commit e9fe44c

Please sign in to comment.