@@ -280,7 +280,6 @@ def listeners(self) -> set[RecordUpdateListener]:
280280 return self .record_manager .listeners
281281
282282 async def async_wait (self , timeout : float ) -> None :
283- """Calling task waits for a given number of milliseconds or until notified."""
284283 loop = self .loop
285284 assert loop is not None
286285 await wait_for_future_set_or_timeout (loop , self ._notify_futures , timeout )
@@ -303,15 +302,6 @@ def get_service_info(
303302 timeout : int = 3000 ,
304303 question_type : DNSQuestionType | None = None ,
305304 ) -> ServiceInfo | None :
306- """Returns network's service information for a particular
307- name and type, or None if no service matches by the timeout,
308- which defaults to 3 seconds.
309-
310- :param type_: fully qualified service type name
311- :param name: the name of the service
312- :param timeout: milliseconds to wait for a response
313- :param question_type: The type of questions to ask (DNSQuestionType.QM or DNSQuestionType.QU)
314- """
315305 info = ServiceInfo (type_ , name )
316306 if info .request (self , timeout , question_type ):
317307 return info
@@ -341,17 +331,6 @@ def register_service(
341331 cooperating_responders : bool = False ,
342332 strict : bool = True ,
343333 ) -> None :
344- """Registers service information to the network with a default TTL.
345- Zeroconf will then respond to requests for information for that
346- service. The name of the service may be changed if needed to make
347- it unique on the network. Additionally multiple cooperating responders
348- can register the same service on the network for resilience
349- (if you want this behavior set `cooperating_responders` to `True`).
350-
351- While it is not expected during normal operation,
352- this function may raise EventLoopBlocked if the underlying
353- call to `register_service` cannot be completed.
354- """
355334 assert self .loop is not None
356335 run_coro_with_timeout (
357336 await_awaitable (
@@ -369,12 +348,6 @@ async def async_register_service(
369348 cooperating_responders : bool = False ,
370349 strict : bool = True ,
371350 ) -> Awaitable :
372- """Registers service information to the network with a default TTL.
373- Zeroconf will then respond to requests for information for that
374- service. The name of the service may be changed if needed to make
375- it unique on the network. Additionally multiple cooperating responders
376- can register the same service on the network for resilience
377- (if you want this behavior set `cooperating_responders` to `True`)."""
378351 if ttl is not None :
379352 # ttl argument is used to maintain backward compatibility
380353 # Setting TTLs via ServiceInfo is preferred
@@ -388,14 +361,6 @@ async def async_register_service(
388361 return asyncio .ensure_future (self ._async_broadcast_service (info , _REGISTER_TIME , None ))
389362
390363 def update_service (self , info : ServiceInfo ) -> None :
391- """Registers service information to the network with a default TTL.
392- Zeroconf will then respond to requests for information for that
393- service.
394-
395- While it is not expected during normal operation,
396- this function may raise EventLoopBlocked if the underlying
397- call to `async_update_service` cannot be completed.
398- """
399364 assert self .loop is not None
400365 run_coro_with_timeout (
401366 await_awaitable (self .async_update_service (info )),
@@ -404,9 +369,6 @@ def update_service(self, info: ServiceInfo) -> None:
404369 )
405370
406371 async def async_update_service (self , info : ServiceInfo ) -> Awaitable :
407- """Registers service information to the network with a default TTL.
408- Zeroconf will then respond to requests for information for that
409- service."""
410372 self .registry .async_update (info )
411373 return asyncio .ensure_future (self ._async_broadcast_service (info , _REGISTER_TIME , None ))
412374
@@ -502,15 +464,6 @@ async def async_get_service_info(
502464 timeout : int = 3000 ,
503465 question_type : DNSQuestionType | None = None ,
504466 ) -> AsyncServiceInfo | None :
505- """Returns network's service information for a particular
506- name and type, or None if no service matches by the timeout,
507- which defaults to 3 seconds.
508-
509- :param type_: fully qualified service type name
510- :param name: the name of the service
511- :param timeout: milliseconds to wait for a response
512- :param question_type: The type of questions to ask (DNSQuestionType.QM or DNSQuestionType.QU)
513- """
514467 info = AsyncServiceInfo (type_ , name )
515468 if await info .async_request (self , timeout , question_type ):
516469 return info
0 commit comments