refactor: удаление метода find_target_by_pretty_name из класса Outbound
This commit is contained in:
@@ -144,16 +144,6 @@ class Outbound(ABC):
|
||||
username, target = email.rsplit("-", 1)
|
||||
return username, target
|
||||
|
||||
@staticmethod
|
||||
def find_target_by_pretty_name(
|
||||
targets: dict[str, dict[str, str]], pretty_name: str
|
||||
) -> str | None:
|
||||
search_name = pretty_name.strip()
|
||||
for target, target_data in targets.items():
|
||||
if target_data.get("pretty_name", "").strip() == search_name:
|
||||
return target
|
||||
return None
|
||||
|
||||
@abstractmethod
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user