15
15
# in handy when developing your code.
16
16
17
17
class FullyTypedNoopRouter (Router ): # pylint: disable=too-few-public-methods
18
- """
19
- A dummy custom router with full typing information.
20
- """
18
+ """A dummy custom router with full typing information."""
21
19
async def email_to_apprise (
22
20
self , logger : Logger , email : EmailMessage , auth_data : Any , ** kwargs ) \
23
21
-> AsyncGenerator [AppriseNotification , None ]:
@@ -27,9 +25,7 @@ async def email_to_apprise(
27
25
body = 'Lorem ipsum dolor sit amet' )
28
26
29
27
class EasyNoopRouter : # pylint: disable=too-few-public-methods
30
- """
31
- A dummy custom router with the minimum required code.
32
- """
28
+ """A dummy custom router with the minimum required code."""
33
29
async def email_to_apprise (self , _logger , _email , _auth_data , ** _kwargs ):
34
30
"""Our replacement for email_to_apprise()."""
35
31
# An ordinary dictionary will not work; we need dot notation access.
@@ -45,9 +41,7 @@ async def email_to_apprise(self, _logger, _email, _auth_data, **_kwargs):
45
41
# communicate that to mypy.
46
42
47
43
def noop_authenticator (_server , _session , _envelope , _mechanism , _auth_data ):
48
- """
49
- A dummy custom authenticator.
50
- """
44
+ """A dummy custom authenticator."""
51
45
return AuthResult (success = False )
52
46
53
47
0 commit comments