]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
run black on enum.py
authorBob Halley <halley@dnspython.org>
Thu, 6 Apr 2023 13:04:18 +0000 (06:04 -0700)
committerBob Halley <halley@dnspython.org>
Thu, 6 Apr 2023 13:04:18 +0000 (06:04 -0700)
dns/enum.py

index 968363aa8305d9d18b90b8505a37561182535b7a..21cab15a824b879533d4d8a29dfa35a86992a1d6 100644 (file)
@@ -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