Skip to content

Commit 5b6ed30

Browse files
committed
Started adding some docs. Changed the config class's arguments name from to and to
1 parent e491d18 commit 5b6ed30

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

digikey/configfile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ def __init__(self):
1515
def save(self):
1616
pass
1717

18-
def get(self, what: str):
18+
def get(self, key: str):
1919
pass
2020

21-
def set(self, what: str, to):
21+
def set(self, key: str, val: str):
2222
pass
2323

2424

@@ -37,10 +37,10 @@ def save(self):
3737
with open(self.file_name, 'w') as f:
3838
json.dump(self.config, f)
3939

40-
def get(self, what: str):
41-
if what in self.config:
42-
return self.config[what]
40+
def get(self, key: str):
41+
if key in self.config:
42+
return self.config[key]
4343
return None
4444

45-
def set(self, what: str, to):
46-
self.config[what] = to
45+
def set(self, key: str, val: str):
46+
self.config[key] = val

0 commit comments

Comments
 (0)