Explorar o código

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

Jonathan de Jong %!s(int64=2) %!d(string=hai) anos
pai
achega
323452944e
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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: