]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Use `Sequence` instead of `List` for nameservers, as List is invariant (#961)
authorav223119 <40322857+av223119@users.noreply.github.com>
Wed, 19 Jul 2023 13:44:09 +0000 (15:44 +0200)
committerGitHub <noreply@github.com>
Wed, 19 Jul 2023 13:44:09 +0000 (06:44 -0700)
commit7c78b943529d2004b2b54700363d2cb64d402924
treebc1799aa35ab1442e73943b0911052c924126b88
parent3b923b3cc7d6e140627c622ab1f95b2464186b99
Use `Sequence` instead of `List` for nameservers, as List is invariant (#961)

without this, resolver.nameservers = string.split() produces mypy error, see
https://mypy.readthedocs.io/en/stable/common_issues.html#invariance-vs-covariance
dns/resolver.py