Remeber to use Dict everywhere
This commit is contained in:
parent
5401e59fb5
commit
8acf1c3cda
|
@ -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."""
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue