Skip to content

Commit f417cab

Browse files
committed
Mark functions with too many branches in need of refactoring
1 parent 18851ed commit f417cab

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

zeroconf/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,7 @@ def normalize_interface_choice(
22952295
return result
22962296

22972297

2298-
def new_socket(
2298+
def new_socket( # pylint: disable=too-many-branches
22992299
bind_addr: Union[Tuple[str], Tuple[str, int, int]],
23002300
port: int = _MDNS_PORT,
23012301
ip_version: IPVersion = IPVersion.V4Only,
@@ -2943,9 +2943,9 @@ def handle_response(self, msg: DNSIncoming) -> None: # pylint: disable=too-many
29432943
for record in removes:
29442944
self.cache.remove(record)
29452945

2946-
def handle_query(
2946+
def handle_query( # pylint: disable=too-many-branches
29472947
self, msg: DNSIncoming, addr: Optional[str], port: int
2948-
) -> None: # pylint: disable=too-many-branches
2948+
) -> None:
29492949
"""Deal with incoming query packets. Provides a response if
29502950
possible."""
29512951
out = None

0 commit comments

Comments
 (0)