Skip to content

Commit

Permalink
Fix type anotation
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Oct 6, 2023
1 parent 7c321d8 commit c6f1017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiodns/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _callback(fut: asyncio.Future, result: Any, errorno: int) -> None:
else:
fut.set_result(result)

def query(self, host: str, qtype: str, qclass: str=None) -> asyncio.Future:
def query(self, host: str, qtype: str, qclass: Optional[str]=None) -> asyncio.Future:
try:
qtype = query_type_map[qtype]
except KeyError:
Expand Down

0 comments on commit c6f1017

Please sign in to comment.