From: Bob Halley Date: Thu, 6 Apr 2023 13:04:18 +0000 (-0700) Subject: run black on enum.py X-Git-Tag: v2.4.0rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb5188eac0e28c8e6695286c32d75ce323a936e6;p=thirdparty%2Fdnspython.git run black on enum.py --- 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