Skip to content

Commit 27e299c

Browse files
Ihor BilousIhor Bilous
authored andcommitted
Fix issue #25: Add return type in examples function
1 parent 7b1e44f commit 27e299c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sending.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333

3434
def send(client: mt.MailtrapClient, mail: mt.BaseMail) -> mt.SEND_ENDPOINT_RESPONSE:
35-
client.send(mail)
35+
return client.send(mail)
3636

3737

3838
def batch_send(client: mt.MailtrapClient, mail: mt.BaseMail) -> mt.SEND_ENDPOINT_RESPONSE:
@@ -41,4 +41,4 @@ def batch_send(client: mt.MailtrapClient, mail: mt.BaseMail) -> mt.SEND_ENDPOINT
4141

4242

4343
if __name__ == "__main__":
44-
send(default_client, mail)
44+
print(send(default_client, mail))

0 commit comments

Comments
 (0)