From: Bob Halley Date: Sat, 23 Aug 2025 20:07:25 +0000 (-0700) Subject: lint X-Git-Tag: v2.8.0rc1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4591447b7d6e38479bcddb14de3b69f314e7009;p=thirdparty%2Fdnspython.git lint --- diff --git a/dns/_no_ssl.py b/dns/_no_ssl.py index c64f0906..edb452de 100644 --- a/dns/_no_ssl.py +++ b/dns/_no_ssl.py @@ -1,5 +1,5 @@ import enum -from typing import Any, Optional +from typing import Any CERT_NONE = 0 diff --git a/dns/name.py b/dns/name.py index 7bf90508..7b3cf123 100644 --- a/dns/name.py +++ b/dns/name.py @@ -15,8 +15,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -"""DNS Names. -""" +"""DNS Names.""" import copy import encodings.idna # type: ignore diff --git a/dns/win32util.py b/dns/win32util.py index 640f08cf..28cecef8 100644 --- a/dns/win32util.py +++ b/dns/win32util.py @@ -1,15 +1,12 @@ -import os import sys import dns._features -import dns.name if sys.platform == "win32": import ctypes import ctypes.wintypes as wintypes import winreg # pylint: disable=import-error from enum import IntEnum - from typing import Any import dns.name diff --git a/pyproject.toml b/pyproject.toml index 9251c3e8..472fe04e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,6 +111,10 @@ lint.ignore = [ "B011", "UP006", "UP035", + # these three are about post-3.9 type syntax and should be revisited after 2.8 + "UP045", + "UP007", + "UP038", ] lint.exclude = ["tests/*"]