summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2023-04-06 06:04:18 -0700
committerBob Halley <halley@dnspython.org>2023-04-06 06:04:18 -0700
commitbb5188eac0e28c8e6695286c32d75ce323a936e6 (patch)
tree2e90bc7ce337a4bf0cdd708cab6692292c881d34
parentcee55728316820d037ece45b11d2fed655a2754c (diff)
downloaddnspython-bb5188eac0e28c8e6695286c32d75ce323a936e6.tar.gz
run black on enum.py
-rw-r--r--dns/enum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns/enum.py b/dns/enum.py
index 968363a..21cab15 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