File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def get_options(self) -> Optional[str]:
99
99
raise ConfigurationError (str (exc )) from None
100
100
if len (results ) > 1 :
101
101
raise ConfigurationError ("Only one TXT record is supported" )
102
- return (b"&" .join ([b"" .join (res .strings ) for res in results ])).decode ("utf-8" )
102
+ return (b"&" .join ([b"" .join (res .strings ) for res in results ])).decode ("utf-8" ) # type: ignore[attr-defined]
103
103
104
104
def _resolve_uri (self , encapsulate_errors : bool ) -> resolver .Answer :
105
105
try :
@@ -121,7 +121,8 @@ def _get_srv_response_and_hosts(
121
121
122
122
# Construct address tuples
123
123
nodes = [
124
- (maybe_decode (res .target .to_text (omit_final_dot = True )), res .port ) for res in results
124
+ (maybe_decode (res .target .to_text (omit_final_dot = True )), res .port ) # type: ignore[attr-defined]
125
+ for res in results
125
126
]
126
127
127
128
# Validate hosts
You can’t perform that action at this time.
0 commit comments