You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the type hints on IHostnameResolver.resolveHostName are incorrect in two places:
addressTypes needs to be an iterable of IAddress types, not instances. (I don't think it needs to be a sequence, but not 100% sure on that.)
The return type might be incorrect. It is declared as IResolutionReceiver (one of the input arguments), but at least the GAIResolver implementation returns an instance of IHostResolution. So something funky is going on.
I believe the type hints on
IHostnameResolver.resolveHostName
are incorrect in two places:addressTypes
needs to be an iterable ofIAddress
types, not instances. (I don't think it needs to be a sequence, but not 100% sure on that.)IResolutionReceiver
(one of the input arguments), but at least theGAIResolver
implementation returns an instance ofIHostResolution
. So something funky is going on.Found while adding type hints to Synapse: matrix-org/synapse#11328
Searchable metadata
The text was updated successfully, but these errors were encountered: