Skip to content

Commit 231168c

Browse files
authored
username and password changed to mandatory arguments (#3)
* username and password changed to mandatory arguments * Removed unused variable
1 parent 5f85316 commit 231168c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pyloadapi/api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from json import JSONDecodeError
55
import logging
66
import traceback
7-
from typing import Optional
87

98
import aiohttp
109

@@ -21,13 +20,12 @@ def __init__(
2120
self,
2221
session: aiohttp.ClientSession,
2322
api_url: str,
24-
username: Optional[str] = None,
25-
password: Optional[str] = None,
23+
username: str,
24+
password: str,
2625
) -> None:
2726
"""Initialize pyLoad API."""
2827
self._session = session
2928
self.api_url = api_url
30-
self.status = None
3129
self.username = username
3230
self.password = password
3331

0 commit comments

Comments
 (0)