From 03ff88e16385b99bb3b93ac732e3b0c5196e684e Mon Sep 17 00:00:00 2001 From: Nicholas Lambourne Date: Mon, 29 Jan 2024 00:46:23 +1000 Subject: [PATCH] fmt --- slackblocks/rich_text.py | 2 +- slackblocks/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slackblocks/rich_text.py b/slackblocks/rich_text.py index fca3507..962ff43 100644 --- a/slackblocks/rich_text.py +++ b/slackblocks/rich_text.py @@ -4,7 +4,7 @@ from typing import Any, Dict, List, Optional, TypeVar, Union from .errors import InvalidUsageError -from .utils import coerce_to_list, validate_int, validate_string +from .utils import coerce_to_list, validate_int class RichTextObjectType(Enum): diff --git a/slackblocks/utils.py b/slackblocks/utils.py index a4d7846..afb40e2 100644 --- a/slackblocks/utils.py +++ b/slackblocks/utils.py @@ -104,7 +104,7 @@ def validate_int( allow_none: bool = False, ) -> int: if num is None and not allow_none: - raise InvalidUsageError(f"`num` is None, which is disallowed.") + raise InvalidUsageError("`num` is None, which is disallowed.") if min_ is not None: if num < min_: raise InvalidUsageError(f"{num} is less than the minimum {min_}")