We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2bd97 commit 57b78a2Copy full SHA for 57b78a2
1 file changed
tempmail/providers.py
@@ -70,9 +70,17 @@ def get_domains() -> tuple[str, ...]:
70
resp.raise_for_status()
71
return tuple(resp.json())
72
73
- def __str__(self) -> str:
+ @property
74
+ def address(self) -> str:
75
+ """The full email address"""
76
return f'{self.username}@{self.domain}'
77
78
+ def __repr__(self) -> str:
79
+ return f'<{self.__class__.__name__} address={self.address!r}>'
80
+
81
+ def __str__(self) -> str:
82
+ return self.address
83
84
@dataclass
85
class MessageInfo:
86
id: int
0 commit comments