Skip to content

Commit

Permalink
Silence a mypy false-positive
Browse files Browse the repository at this point in the history
  • Loading branch information
jstasiak committed Mar 24, 2021
1 parent bd80d20 commit 6482da0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zeroconf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,8 @@ def add_multicast_member(
is_v6 = isinstance(interface, tuple)
err_einval = {errno.EINVAL}
if sys.platform == 'win32':
err_einval |= {errno.WSAEINVAL}
# No WSAEINVAL definition in typeshed
err_einval |= {cast(Any, errno).WSAEINVAL}
log.debug('Adding %r (socket %d) to multicast group', interface, listen_socket.fileno())
try:
if is_v6:
Expand Down

0 comments on commit 6482da0

Please sign in to comment.