mirror of
https://github.com/NohamR/prometheus-qbittorrent-exporter.git
synced 2026-11-25 23:08:00 +00:00
Add type hints to get_config_value
This commit is contained in:
1 parent
daed737f73
commit
330d8ec86a
1 file changed
+1
-1
@@ -234,7 +234,7 @@ class ShutdownSignalHandler:
|
|||||||
self.shutdown_count += 1
|
self.shutdown_count += 1
|
||||||
|
|
||||||
|
|
||||||
def _get_config_value(key, default=""):
|
def _get_config_value(key: str, default: str = "") -> str:
|
||||||
input_path = os.environ.get("FILE__" + key, None)
|
input_path = os.environ.get("FILE__" + key, None)
|
||||||
if input_path is not None:
|
if input_path is not None:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user