From efa146d3c0ccf1ce34d4d6589d96bbc56a69ce6a Mon Sep 17 00:00:00 2001 From: Denis Laxalde Date: Thu, 4 Nov 2021 15:59:37 +0100 Subject: [PATCH] Add a type hint for a list in dns tests --- tests/test_dns_srv.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_dns_srv.py b/tests/test_dns_srv.py index 30ac1f556..383a9cbf6 100644 --- a/tests/test_dns_srv.py +++ b/tests/test_dns_srv.py @@ -1,3 +1,5 @@ +from typing import List, Union + import pytest import psycopg @@ -149,7 +151,7 @@ def get_fake_srv_function(monkeypatch): ans = fake_hosts[qname, rdtype] except KeyError: raise DNSException(f"unknown test host: {qname} {rdtype}") - rv = [] + rv: List[Union[A, SRV]] = [] if rdtype == "A": for entry in ans: -- 2.47.2