From 9d8bc9ba130ce1b4e9453272d125bbe2bed7b386 Mon Sep 17 00:00:00 2001 From: "alex.oleshkevich" Date: Tue, 16 Apr 2024 21:47:07 +0200 Subject: [PATCH] reformat code --- examples/attachments.py | 1 + examples/cssliner.py | 1 + examples/custom_transport.py | 1 + examples/dkim_signature.py | 1 + examples/embedded.py | 1 + examples/html_body.py | 1 + examples/templates.py | 1 + examples/text.py | 1 + mailers/preprocessors/__init__.py | 3 +-- 9 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/attachments.py b/examples/attachments.py index cbee508..75f6dbe 100644 --- a/examples/attachments.py +++ b/examples/attachments.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import os import tempfile diff --git a/examples/cssliner.py b/examples/cssliner.py index 38659b4..ccd5600 100644 --- a/examples/cssliner.py +++ b/examples/cssliner.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import jinja2 import os diff --git a/examples/custom_transport.py b/examples/custom_transport.py index ee1427a..0e443ce 100644 --- a/examples/custom_transport.py +++ b/examples/custom_transport.py @@ -6,6 +6,7 @@ * MAILERS_RECIPIENT - a recipient's email ("To" header) * MAILERS_FROM_ADDRESS - a sender address ("From" header) """ + import asyncio import os import sys diff --git a/examples/dkim_signature.py b/examples/dkim_signature.py index 2dc7f9a..7776aed 100644 --- a/examples/dkim_signature.py +++ b/examples/dkim_signature.py @@ -11,6 +11,7 @@ Also make sure that you have set up DKIM DNS TXT record. Also, you may need to setup SPF DNS TEXT record as well if sender's IP is not the same as DKIM domain. """ + import asyncio import os diff --git a/examples/embedded.py b/examples/embedded.py index 326389d..fa6ef81 100644 --- a/examples/embedded.py +++ b/examples/embedded.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import base64 import os diff --git a/examples/html_body.py b/examples/html_body.py index 2ed1486..9c13611 100644 --- a/examples/html_body.py +++ b/examples/html_body.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import os diff --git a/examples/templates.py b/examples/templates.py index 3915aa7..006fa16 100644 --- a/examples/templates.py +++ b/examples/templates.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import jinja2 import os diff --git a/examples/text.py b/examples/text.py index 5d3f270..782772e 100644 --- a/examples/text.py +++ b/examples/text.py @@ -7,6 +7,7 @@ * MAILERS_FROM_ADDRESS - a sender address ("From" header) * MAILER_URL - mailer configuration URL """ + import asyncio import os diff --git a/mailers/preprocessors/__init__.py b/mailers/preprocessors/__init__.py index 8bf8d8f..2a28816 100644 --- a/mailers/preprocessors/__init__.py +++ b/mailers/preprocessors/__init__.py @@ -3,5 +3,4 @@ class Preprocessor(typing.Protocol): - def __call__(self, message: EmailMessage) -> EmailMessage: - ... + def __call__(self, message: EmailMessage) -> EmailMessage: ...