Преглед на файлове

One last inline type hint (for the whole repo) (#10418)

Jonathan de Jong преди 2 години
родител
ревизия
323452944e
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 0
      changelog.d/10418.misc
  2. 1 1
      synapse/module_api/__init__.py

+ 1 - 0
changelog.d/10418.misc

@@ -0,0 +1 @@
+Convert internal type variable syntax to reflect wider ecosystem use.

+ 1 - 1
synapse/module_api/__init__.py

@@ -89,7 +89,7 @@ class ModuleApi:
         self._server_name = hs.hostname
         self._presence_stream = hs.get_event_sources().sources["presence"]
         self._state = hs.get_state_handler()
-        self._clock = hs.get_clock()  # type: Clock
+        self._clock: Clock = hs.get_clock()
         self._send_email_handler = hs.get_send_email_handler()
 
         try: