Skip to content

Commit 079c044

Browse files
Ihor BilousIhor Bilous
authored andcommitted
Fix issue #41: Fix typo
1 parent a2c7117 commit 079c044

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/contacts/contact_exports.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import mailtrap as mt
2-
from mailtrap.models.contacts import ContactImport
2+
from mailtrap.models.contacts import ContactExportDetail
33

44
API_TOKEN = "YOUR_API_TOKEN"
55
ACCOUNT_ID = "YOUR_ACCOUNT_ID"
@@ -10,12 +10,12 @@
1010

1111
def create_export_contacts(
1212
contact_exports_params: mt.CreateContactExportParams,
13-
) -> ContactImport:
13+
) -> ContactExportDetail:
1414
return contact_exports_api.create(contact_exports_params=contact_exports_params)
1515

1616

17-
def get_contact_export(import_id: int) -> ContactImport:
18-
return contact_exports_api.get_by_id(import_id)
17+
def get_contact_export(export_id: int) -> ContactExportDetail:
18+
return contact_exports_api.get_by_id(export_id)
1919

2020

2121
if __name__ == "__main__":

0 commit comments

Comments
 (0)