From e1a78d560dc8938f40a6a32fa63abc3e1d9858fc Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Wed, 28 Jun 2023 17:48:51 -0400 Subject: [PATCH] add type hint for pop3.write --- README.md | 2 +- mail4one/pop3.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 23ee427..9ad5695 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Designed for dynamic alias based workflow where a different alias is used for ea 1. [Build](#building-from-source) / Download latest release - `mail4one.pyz` 1. Generate `config.json` from [config.sample](deploy_configs/config.sample) 1. Run `./mail4one.pyz -c config.json` - 1. [Optional] Setup systemd service and TLS certificates. See [deploy_configs](deploy_configs/) for examples + 1. Setup systemd service and TLS certificates. See [deploy_configs](deploy_configs/) for examples # Sending email diff --git a/mail4one/pop3.py b/mail4one/pop3.py index 5b993ae..3214ce9 100644 --- a/mail4one/pop3.py +++ b/mail4one/pop3.py @@ -116,8 +116,8 @@ async def expect_cmd(*commands: Command) -> Request: return req -def write(data) -> None: - logger.debug(f"Server: {data}") +def write(data: bytes) -> None: + logger.debug(f"Server: {data!r}") state().writer.write(data)