Skip to content

Commit 5d08557

Browse files
committed
fix: add args/kwargs: Any
1 parent e9fe44c commit 5d08557

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/mailpit/testcontainers/mailpit/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import os
1616
import tempfile
1717
from datetime import datetime, timedelta, timezone
18-
from typing import TYPE_CHECKING, NamedTuple
18+
from typing import TYPE_CHECKING, Any, NamedTuple
1919

2020
from cryptography import x509
2121
from cryptography.hazmat.primitives import hashes, serialization
@@ -29,9 +29,7 @@
2929
from testcontainers.core.waiting_utils import wait_for_logs
3030

3131
if TYPE_CHECKING:
32-
from typing_extensions import ParamSpec, Self
33-
34-
P = ParamSpec("P")
32+
from typing_extensions import Self
3533

3634

3735
class MailpitUser(NamedTuple):
@@ -127,7 +125,7 @@ def start(self) -> Self:
127125
wait_for_logs(self, ".*accessible via.*")
128126
return self
129127

130-
def stop(self, *args, **kwargs) -> None:
128+
def stop(self, *args: Any, **kwargs: Any) -> None:
131129
super().stop(*args, **kwargs)
132130
os.remove(self.tls_key_file)
133131
os.remove(self.tls_cert_file)

0 commit comments

Comments
 (0)