|
@@ -1,7 +1,6 @@
|
|
|
import dataclasses
|
|
|
import json
|
|
|
from pathlib import Path
|
|
|
-from typing import Self
|
|
|
|
|
|
import jinja2
|
|
|
import typer
|
|
@@ -9,6 +8,9 @@ from O365 import Account
|
|
|
from O365.address_book import Contact
|
|
|
from smtp_mail import SmtpMailer
|
|
|
|
|
|
+# from typing import Self
|
|
|
+
|
|
|
+
|
|
|
app = typer.Typer()
|
|
|
|
|
|
client_id = "925f74dc-f96a-4718-9ca7-d6cc3fa43e1e"
|
|
@@ -72,7 +74,7 @@ class SerialContact:
|
|
|
return self.display_name == other.display_name
|
|
|
|
|
|
@staticmethod
|
|
|
- def from_o365_contact(p_from: Contact) -> Self:
|
|
|
+ def from_o365_contact(p_from: Contact):
|
|
|
return SerialContact(
|
|
|
display_name=p_from.display_name or "",
|
|
|
name=p_from.name,
|