Skip to content

Commit 5fce89d

Browse files
authored
Mark functions with too many branches in need of refactoring (#455)
1 parent 7544cdf commit 5fce89d

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,
@@ -2945,9 +2945,9 @@ def handle_response(self, msg: DNSIncoming) -> None: # pylint: disable=too-many
29452945
for record in removes:
29462946
self.cache.remove(record)
29472947

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

0 commit comments

Comments
 (0)