added type annotation
This commit is contained in:
parent
e732a3457d
commit
b9960c46a3
@ -1,7 +1,7 @@
|
|||||||
import requests, json, re, os
|
import requests, json, re, os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
def loadSettings(path = f"{os.path.expanduser('~')}/.config/dyn-gandi/config.json") -> dict:
|
def loadSettings(path: str = f"{os.path.expanduser('~')}/.config/dyn-gandi/config.json") -> dict:
|
||||||
# TODO: check integrity
|
# TODO: check integrity
|
||||||
try:
|
try:
|
||||||
with open(path, 'r') as file:
|
with open(path, 'r') as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user