Remeber to use Dict everywhere

This commit is contained in:
Mikkel Munch Mortensen 2021-11-04 12:53:19 +01:00
parent 5401e59fb5
commit 8acf1c3cda
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@ class Gateway:
gateway_url: str = "https://api.cpsms.dk/v2/send" gateway_url: str = "https://api.cpsms.dk/v2/send"
@property @property
def default_options(self) -> dict[str, Any]: def default_options(self) -> Dict[str, Any]:
"""Get some default options to use.""" """Get some default options to use."""
return { return {
"to": "", "to": "",
@ -57,7 +57,7 @@ class Gateway:
username: str, username: str,
password: str, password: str,
sender_name: str, sender_name: str,
options: dict[str, Any] = None, options: Dict[str, Any] = None,
gateway_url: str = None, gateway_url: str = None,
) -> None: ) -> None:
"""Initialize SMS gateway.""" """Initialize SMS gateway."""

View file

@ -4,7 +4,7 @@ from distutils.core import setup
setup( setup(
name="cpsms", name="cpsms",
packages=["cpsms"], packages=["cpsms"],
version="2.0", version="2.0.2",
author="Mikkel Munch Mortensen", author="Mikkel Munch Mortensen",
author_email="3xm@detfalskested.dk", author_email="3xm@detfalskested.dk",
url="https://github.com/decibyte/cpsms", url="https://github.com/decibyte/cpsms",