]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Uppercase A in Any 2983/head
authorkriskros341 <krzysztofczuba884@gmail.com>
Wed, 27 Jan 2021 15:37:05 +0000 (16:37 +0100)
committerkriskros341 <krzysztofczuba884@gmail.com>
Wed, 27 Jan 2021 15:37:05 +0000 (16:37 +0100)
tornado/websocket.py

index 256a5ee7f45973f957e5c15cfaa25d552deee4e2..3a83707abedad2cc4e55bc298044f968d67cb05c 100644 (file)
@@ -680,7 +680,7 @@ class WebSocketProtocol(abc.ABC):
 
     @abc.abstractmethod
     def write_message(
-        self, message: Union[str, bytes], binary: bool = False
+        self, message: Union[str, bytes, Dict[str, Any]], binary: bool = False
     ) -> "Future[None]":
         raise NotImplementedError()
 
@@ -1072,7 +1072,7 @@ class WebSocketProtocol13(WebSocketProtocol):
         return self.stream.write(frame)
 
     def write_message(
-        self, message: Union[str, bytes, Dict[str, any]], binary: bool = False
+        self, message: Union[str, bytes, Dict[str, Any]], binary: bool = False
     ) -> "Future[None]":
         """Sends the given message to the client of this Web Socket."""
         if binary:
@@ -1495,7 +1495,7 @@ class WebSocketClientConnection(simple_httpclient._HTTPConnection):
         future_set_result_unless_cancelled(self.connect_future, self)
 
     def write_message(
-        self, message: Union[str, bytes, Dict[str, any]], binary: bool = False
+        self, message: Union[str, bytes, Dict[str, Any]], binary: bool = False
     ) -> "Future[None]":
         """Sends a message to the WebSocket server.