Skip to content

Commit 13abbd3

Browse files
committed
changing credentials type annotation as suggested by issue #1207
1 parent b91631a commit 13abbd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

O365/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Account:
99
connection_constructor: Type = Connection #: :meta private:
1010

11-
def __init__(self, credentials: Tuple[str, str], *,
11+
def __init__(self, credentials: str | tuple[str, str], *,
1212
username: Optional[str] = None,
1313
protocol: Optional[Protocol] = None,
1414
main_resource: Optional[str] = None, **kwargs):

O365/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class Connection:
366366

367367
def __init__(
368368
self,
369-
credentials: tuple,
369+
credentials: str | tuple[str, str],
370370
*,
371371
proxy_server: Optional[str] = None,
372372
proxy_port: Optional[int] = 8080,

0 commit comments

Comments
 (0)