Skip to content

Commit

Permalink
fixes #78
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne committed Feb 26, 2024
1 parent 8f86df0 commit 9ba54b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "slackblocks"
version = "1.0.5"
version = "1.0.6"
description = "Python wrapper for the Slack Blocks API"
authors = [
"Nicholas Lambourne <[email protected]>",
Expand Down
4 changes: 2 additions & 2 deletions slackblocks/elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def __init__(
if (
options
and self.initial_options
and not isinstance(self.initial_options, List[Option])
and not all(isinstance(option, Option) for option in self.initial_options)
):
raise InvalidUsageError(
"If using `options` then `initial_options` must also be of type `List[Option]`, "
Expand All @@ -526,7 +526,7 @@ def __init__(
if (
option_groups
and self.initial_options
and not isinstance(self.initial_options, List[OptionGroup])
and not all(isinstance(option, OptionGroup) for option in self.initial_options)
):
raise InvalidUsageError(
"If using `option_groups` then `initial_options` must also be of type "
Expand Down

0 comments on commit 9ba54b7

Please sign in to comment.