Skip to content

Commit

Permalink
Fix return type for resolver nameservers
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrochu authored and saghul committed Oct 6, 2023
1 parent aac8df5 commit b869b14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aiodns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
Any,
List,
Optional,
Set
Set,
Union
)

from . import error
Expand Down Expand Up @@ -58,7 +59,7 @@ def __init__(self, nameservers: Optional[List[str]] = None,
self._timer = None # type: Optional[asyncio.TimerHandle]

@property
def nameservers(self) -> pycares.Channel:
def nameservers(self) -> List[Union[str, bytes]]:
return self._channel.servers

@nameservers.setter
Expand Down

0 comments on commit b869b14

Please sign in to comment.