From bb5188eac0e28c8e6695286c32d75ce323a936e6 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 6 Apr 2023 06:04:18 -0700 Subject: [PATCH] run black on enum.py --- dns/enum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/enum.py b/dns/enum.py index 968363aa..21cab15a 100644 --- a/dns/enum.py +++ b/dns/enum.py @@ -41,7 +41,7 @@ class IntEnum(enum.IntEnum): raise ValueError(f"{name} must be an int between >= 0 and <= {max}") @classmethod - def from_text(cls : Type[TIntEnum], text: str) -> TIntEnum: + def from_text(cls: Type[TIntEnum], text: str) -> TIntEnum: text = text.upper() try: return cls[text] @@ -61,7 +61,7 @@ class IntEnum(enum.IntEnum): raise cls._unknown_exception_class() @classmethod - def to_text(cls : Type[TIntEnum], value : int) -> str: + def to_text(cls: Type[TIntEnum], value: int) -> str: cls._check_value(value) try: text = cls(value).name -- 2.47.3