@@ -742,13 +742,13 @@ def add_writer(self, fd, callback, *args): # type: ignore[override]
742742 )
743743
744744 def remove_reader (self , fd ):
745- """Remove a reader callback for a file descriptor."""
745+ """Remove a reader callback for a file descriptor (unsupported on WebLoop) ."""
746746 raise NotImplementedError (
747747 "remove_reader() is not available in browser environments due to lack of POSIX file descriptors."
748748 )
749749
750750 def remove_writer (self , fd ):
751- """Remove a writer callback for a file descriptor."""
751+ """Remove a writer callback for a file descriptor (unsupported on WebLoop) ."""
752752 raise NotImplementedError (
753753 "remove_writer() is not available in browser environments due to lack of POSIX file descriptors."
754754 )
@@ -758,19 +758,19 @@ def remove_writer(self, fd):
758758 #
759759
760760 async def connect_read_pipe (self , protocol_factory , pipe ):
761- """Connect a read pipe to the event loop."""
761+ """Connect a read pipe to the event loop (unsupported on WebLoop) ."""
762762 raise NotImplementedError (
763763 "connect_read_pipe() is not available in browser environments due to absence of OS pipes."
764764 )
765765
766766 async def connect_write_pipe (self , protocol_factory , pipe ):
767- """Connect a write pipe to the event loop."""
767+ """Connect a write pipe to the event loop (unsupported on WebLoop) ."""
768768 raise NotImplementedError (
769769 "connect_write_pipe() is not available in browser environments due to absence of OS pipes."
770770 )
771771
772772 async def sendfile (self , transport , file , offset = 0 , count = None , * , fallback = True ):
773- """Send a file over a transport. Return the total number of bytes sent ."""
773+ """Send a file over a transport (unsupported on WebLoop) ."""
774774 raise NotImplementedError (
775775 "sendfile() is not available in browser environments due to missing OS file descriptors and zero-copy facilities."
776776 )
@@ -780,55 +780,55 @@ async def sendfile(self, transport, file, offset=0, count=None, *, fallback=True
780780 #
781781
782782 async def getaddrinfo (self , host , port , * , family = 0 , type = 0 , proto = 0 , flags = 0 ):
783- """Asynchronous version of socket.getaddrinfo().""" ""
783+ """Asynchronous version of socket.getaddrinfo() (unsupported on WebLoop)." ""
784784 raise NotImplementedError (
785785 "getaddrinfo() is not available in browser environments due to restricted raw network access."
786786 )
787787
788788 async def getnameinfo (self , sockaddr , flags = 0 ):
789- """Asynchronous version of socket.getnameinfo()."""
789+ """Asynchronous version of socket.getnameinfo() (unsupported on WebLoop) ."""
790790 raise NotImplementedError (
791791 "getnameinfo() is not available in browser environments due to restricted raw network access."
792792 )
793793
794794 async def create_connection (self , protocol_factory , host = None , port = None , ** kwargs ):
795- """Open a streaming transport connection to a given address (host, port )."""
795+ """Open a streaming transport connection to a given address (unsupported on WebLoop )."""
796796 raise NotImplementedError (
797797 "create_connection() is not available in browser environments due to restricted raw socket access."
798798 )
799799
800800 async def create_server (self , protocol_factory , host = None , port = None , ** kwargs ):
801- """Create a TCP server (SOCK_STREAM); return a Server object ."""
801+ """Create a TCP server (unsupported on WebLoop) ."""
802802 raise NotImplementedError (
803803 "create_server() is not available in browser environments due to restricted raw socket access."
804804 )
805805
806806 async def create_unix_connection (self , protocol_factory , path = None , ** kwargs ):
807- """Open a connection to a UNIX domain socket."""
807+ """Open a connection to a UNIX domain socket (unsupported on WebLoop) ."""
808808 raise NotImplementedError (
809809 "create_unix_connection() is not available in browser environments due to absence of Unix domain sockets."
810810 )
811811
812812 async def create_unix_server (self , protocol_factory , path = None , ** kwargs ):
813- """Create a UNIX domain socket server."""
813+ """Create a UNIX domain socket server (unsupported on WebLoop) ."""
814814 raise NotImplementedError (
815815 "create_unix_server() is not available in browser environments due to absence of Unix domain sockets."
816816 )
817817
818818 async def connect_accepted_socket (self , protocol_factory , sock , ** kwargs ):
819- """Wrap an already accepted socket into a ( transport, protocol) pair."""
819+ """Wrap an already accepted socket into a transport and protocol pair (unsupported on WebLoop) ."""
820820 raise NotImplementedError (
821821 "connect_accepted_socket() is not available in browser environments due to restricted raw socket access."
822822 )
823823
824824 async def create_datagram_endpoint (self , protocol_factory , ** kwargs ): # type: ignore[override]
825- """Create a datagram (UDP) connection; return (transport, protocol )."""
825+ """Create a datagram (UDP) connection (unsupported on WebLoop )."""
826826 raise NotImplementedError (
827827 "create_datagram_endpoint() is not available in browser environments due to restricted raw socket access."
828828 )
829829
830830 async def start_tls (self , transport , protocol , sslcontext , ** kwargs ):
831- """Upgrade an existing connection to TLS."""
831+ """Upgrade an existing connection to TLS (unsupported on WebLoop) ."""
832832 raise NotImplementedError (
833833 "start_tls() is not available in browser environments due to lack of low-level TLS controls."
834834 )
@@ -838,55 +838,55 @@ async def start_tls(self, transport, protocol, sslcontext, **kwargs):
838838 #
839839
840840 async def sock_recv (self , sock , nbytes ):
841- """Receive up to nbytes; return bytes ."""
841+ """Receive up to nbytes (unsupported on WebLoop) ."""
842842 raise NotImplementedError (
843843 "sock_recv() is not available in browser environments due to restricted raw socket access."
844844 )
845845
846846 async def sock_recv_into (self , sock , buf ):
847- """Receive into buf; return number of bytes written ."""
847+ """Receive into buf (unsupported on WebLoop) ."""
848848 raise NotImplementedError (
849849 "sock_recv_into() is not available in browser environments due to restricted raw socket access."
850850 )
851851
852852 async def sock_recvfrom (self , sock , bufsize ):
853- """Receive a datagram up to bufsize; return (data, address )."""
853+ """Receive a datagram up to bufsize (unsupported on WebLoop )."""
854854 raise NotImplementedError (
855855 "sock_recvfrom() is not available in browser environments due to restricted raw socket access."
856856 )
857857
858858 async def sock_recvfrom_into (self , sock , buf , nbytes = 0 ):
859- """Receive a datagram into buf; return (nbytes, address )."""
859+ """Receive a datagram into buf (unsupported on WebLoop )."""
860860 raise NotImplementedError (
861861 "sock_recvfrom_into() is not available in browser environments due to restricted raw socket access."
862862 )
863863
864864 async def sock_sendall (self , sock , data ):
865- """Send all data to the socket; return None on success ."""
865+ """Send all data to the socket (unsupported on WebLoop) ."""
866866 raise NotImplementedError (
867867 "sock_sendall() is not available in browser environments due to restricted raw socket access."
868868 )
869869
870870 async def sock_sendto (self , sock , data , address ):
871- """Send a datagram to address; return number of bytes sent ."""
871+ """Send a datagram to address (unsupported on WebLoop) ."""
872872 raise NotImplementedError (
873873 "sock_sendto() is not available in browser environments due to restricted raw socket access."
874874 )
875875
876876 async def sock_connect (self , sock , address ):
877- """Connect the socket to a remote address."""
877+ """Connect the socket to a remote address (unsupported on WebLoop) ."""
878878 raise NotImplementedError (
879879 "sock_connect() is not available in browser environments due to restricted raw socket access."
880880 )
881881
882882 async def sock_accept (self , sock ):
883- """Accept a connection; return (conn, address )."""
883+ """Accept a connection (unsupported on WebLoop )."""
884884 raise NotImplementedError (
885885 "sock_accept() is not available in browser environments due to restricted raw socket access."
886886 )
887887
888888 async def sock_sendfile (self , sock , file , offset = 0 , count = None , * , fallback = None ):
889- """Send a file (uses os.sendfile if possible); return total bytes sent ."""
889+ """Send a file (uses os.sendfile if possible) (unsupported on WebLoop) ."""
890890 raise NotImplementedError (
891891 "sock_sendfile() is not available in browser environments due to missing OS file descriptors and zero-copy facilities."
892892 )
@@ -896,13 +896,13 @@ async def sock_sendfile(self, sock, file, offset=0, count=None, *, fallback=None
896896 #
897897
898898 async def subprocess_shell (self , protocol_factory , cmd , ** kwargs ):
899- """Create a subprocess from string args; return (transport, protocol )."""
899+ """Create a subprocess from string args (unsupported on WebLoop )."""
900900 raise NotImplementedError (
901901 "subprocess_shell() is not available in browser environments due to absence of OS process APIs."
902902 )
903903
904904 async def subprocess_exec (self , protocol_factory , * args , ** kwargs ):
905- """Run a subprocess from a shell command line; return (transport, protocol )."""
905+ """Run a subprocess from a shell command line (unsupported on WebLoop )."""
906906 raise NotImplementedError (
907907 "subprocess_exec() is not available in browser environments due to absence of OS process APIs."
908908 )
@@ -912,13 +912,13 @@ async def subprocess_exec(self, protocol_factory, *args, **kwargs):
912912 #
913913
914914 def add_signal_handler (self , sig , callback , * args ): # type: ignore[override]
915- """Set callback as the handler for the given signal (Unix )."""
915+ """Set callback as the handler for the given signal (unsupported on WebLoop )."""
916916 raise NotImplementedError (
917917 "add_signal_handler() is not available in browser environments due to lack of POSIX signals."
918918 )
919919
920920 def remove_signal_handler (self , sig ):
921- """Remove the handler for the given signal; return True if removed (Unix )."""
921+ """Remove the handler for the given signal (unsupported on WebLoop )."""
922922 raise NotImplementedError (
923923 "remove_signal_handler() is not available in browser environments due to lack of POSIX signals."
924924 )
0 commit comments