File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
modules/mailpit/testcontainers/mailpit Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1515import os
1616import tempfile
1717from datetime import datetime , timedelta , timezone
18- from typing import NamedTuple , Self
18+ from typing import TYPE_CHECKING , NamedTuple
1919
2020from cryptography import x509
2121from cryptography .hazmat .primitives import hashes , serialization
2828from testcontainers .core .container import DockerContainer
2929from testcontainers .core .waiting_utils import wait_for_logs
3030
31+ if TYPE_CHECKING :
32+ from typing_extensions import ParamSpec , Self
33+
34+ P = ParamSpec ("P" )
35+
3136
3237class MailpitUser (NamedTuple ):
3338 """Mailpit user for authentication"""
@@ -36,7 +41,7 @@ class MailpitUser(NamedTuple):
3641 password : str
3742
3843
39- class MailpitContainer (DockerContainer ): # type: ignore[misc]
44+ class MailpitContainer (DockerContainer ):
4045 """
4146 Test container for Mailpit. The example below spins up a Mailpit server
4247
You can’t perform that action at this time.
0 commit comments