Skip to content

Commit 4a8c2c5

Browse files
committed
Return type narrowed to Dict[str, str]
1 parent e9a3593 commit 4a8c2c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/utils/read_credentials.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
"""
66

77
from pathlib import Path
8+
from typing import Optional, Union, Dict
89
import os
910

1011

11-
def read_credentials(path: str | Path = None) -> dict:
12+
def read_credentials(path: Optional[Union[str, Path]] = None) -> Dict[str, str]:
1213
"""Return dict of credentials from the given file. Falls back to env vars if not present."""
1314
creds = {}
1415
if path is None:

0 commit comments

Comments
 (0)