From 473491f0cd40f0db22b66e2b01aaba7e69f4aae5 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sun, 26 Jun 2022 15:45:27 +0000 Subject: [PATCH] Add type hint to Connection._getSafe return value --- tinytinypy/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinytinypy/main.py b/tinytinypy/main.py index 6dae77a..cfaaac1 100644 --- a/tinytinypy/main.py +++ b/tinytinypy/main.py @@ -3,6 +3,7 @@ import atexit import http.client import json +from typing import Dict from .JsonClass import JsonClass @@ -152,7 +153,7 @@ class Connection: ret = json.loads(res.read().decode('utf8')) return ret - def _getSafe(self, op, sendSid=True, **parameters): + def _getSafe(self, op, sendSid=True, **parameters) -> Dict: r = self._get(op, sendSid=sendSid, **parameters) if r['status'] != 0: if r['content']['error'] == 'NOT_LOGGED_IN':