@@ -18,10 +18,6 @@ class SocketInfo:
1818 """Provides information about the connection, from either the underlying
1919 :mod:`asyncio` transport layer or overridden by the PROXY protocol result.
2020
21- Undocumented properties will pass through as calls to
22- :meth:`~asyncio.BaseTransport.get_extra_info` and will raise
23- :exc:`AttributeError` if there is no value available.
24-
2521 Args:
2622 transport: The :class:`~asyncio.BaseTransport` or
2723 :class:`~asyncio.StreamWriter` for the connection.
@@ -96,23 +92,23 @@ def sockname(self) -> Address:
9692 @property
9793 def sockname_ip (self ) -> Union [None , IPv4Address , IPv6Address ]:
9894 """The IP address object from :attr:`.sockname`, for
99- :attr :`~socket.AF_INET` or :attr :`~socket.AF_INET6` connections.
95+ :data :`~socket.AF_INET` or :data :`~socket.AF_INET6` connections.
10096
10197 """
10298 return self ._get_ip (self .sockname )
10399
104100 @property
105101 def sockname_port (self ) -> Optional [int ]:
106102 """The port number from :attr:`.sockname`, for
107- :attr :`~socket.AF_INET` or :attr :`~socket.AF_INET6` connections.
103+ :data :`~socket.AF_INET` or :data :`~socket.AF_INET6` connections.
108104
109105 """
110106 return self ._get_port (self .sockname )
111107
112108 @property
113109 def sockname_str (self ) -> Optional [str ]:
114110 """The :attr:`.sockname` address as a string. For
115- :attr :`~socket.AF_INET`/:attr :`~socket.AF_INET6` families, this is
111+ :data :`~socket.AF_INET`/:data :`~socket.AF_INET6` families, this is
116112 ``ip:port``.
117113
118114 """
@@ -136,23 +132,23 @@ def peername(self) -> Address:
136132 @property
137133 def peername_ip (self ) -> Union [None , IPv4Address , IPv6Address ]:
138134 """The IP address object from :attr:`.peername`, for
139- :attr :`~socket.AF_INET` or :attr :`~socket.AF_INET6` connections.
135+ :data :`~socket.AF_INET` or :data :`~socket.AF_INET6` connections.
140136
141137 """
142138 return self ._get_ip (self .peername )
143139
144140 @property
145141 def peername_port (self ) -> Optional [int ]:
146142 """The port number from :attr:`.peername`, for
147- :attr :`~socket.AF_INET` or :attr :`~socket.AF_INET6` connections.
143+ :data :`~socket.AF_INET` or :data :`~socket.AF_INET6` connections.
148144
149145 """
150146 return self ._get_port (self .peername )
151147
152148 @property
153149 def peername_str (self ) -> Optional [str ]:
154150 """The :attr:`.peername` address as a string. For
155- :attr :`~socket.AF_INET`/:attr :`~socket.AF_INET6` families, this is
151+ :data :`~socket.AF_INET`/:data :`~socket.AF_INET6` families, this is
156152 ``ip:port``.
157153
158154 """
@@ -254,11 +250,11 @@ def unique_id(self) -> bytes:
254250 def from_localhost (self ) -> bool :
255251 """True for local socket connections, if:
256252
257- * :attr:`.family` is :attr :`~socket.AF_UNIX`, or
253+ * :attr:`.family` is :data :`~socket.AF_UNIX`, or
258254 * :attr:`.peername_ip` has True
259255 :attr:`~ipaddress.IPv4Address.is_loopback` flag.
260256
261- To be specific, True for :attr :`~socket.AF_UNIX` connections and True
257+ To be specific, True for :data :`~socket.AF_UNIX` connections and True
262258 for IPv4/IPv6 connections with True
263259 :attr:`~ipaddress.IPv4Address.is_loopback` flags.
264260
0 commit comments