[tor-commits] [stem/master] Fix errors in static checks of my IDE

atagar at torproject.org atagar at torproject.org
Thu Jul 16 01:28:59 UTC 2020


commit 66d597e90741260341ec264ea774f3089d43f7b9
Author: Illia Volochii <illia.volochii at gmail.com>
Date:   Thu May 14 00:12:02 2020 +0300

    Fix errors in static checks of my IDE
---
 stem/control.py           | 2 +-
 stem/descriptor/remote.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/control.py b/stem/control.py
index 1488621a..e483d4f3 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -3899,7 +3899,7 @@ class Controller(_ControllerClassMethodMixin, _BaseControllerSocketMixin, stem.u
       self._thread_for_wrapped_class = stem.util.ThreadForWrappedAsyncClass()
       self._thread_for_wrapped_class.start()
 
-    self._wrapped_instance = self._init_async_class(AsyncController, control_socket, is_authenticated)
+    self._wrapped_instance: AsyncController = self._init_async_class(AsyncController, control_socket, is_authenticated)
     self._socket = self._wrapped_instance._socket
 
   def msg(self, message: str) -> stem.response.ControlMessage:
diff --git a/stem/descriptor/remote.py b/stem/descriptor/remote.py
index eca846ee..daa3b42c 100644
--- a/stem/descriptor/remote.py
+++ b/stem/descriptor/remote.py
@@ -565,7 +565,7 @@ class Query(stem.util.AsyncClassWrapper):
   def __init__(self, resource, descriptor_type = None, endpoints = None, compression = (Compression.GZIP,), retries = 2, fall_back_to_authority = False, timeout = None, start = True, block = False, validate = False, document_handler = stem.descriptor.DocumentHandler.ENTRIES, **kwargs):
     self._thread_for_wrapped_class = stem.util.ThreadForWrappedAsyncClass()
     self._thread_for_wrapped_class.start()
-    self._wrapped_instance = self._init_async_class(
+    self._wrapped_instance: AsyncQuery = self._init_async_class(
       AsyncQuery,
       resource,
       descriptor_type,





More information about the tor-commits mailing list