Skip to content

Commit

Permalink
version 3.33.3
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Oct 30, 2024
1 parent 39d9704 commit 1d0fda6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
33 changes: 33 additions & 0 deletions docs/static/api-docs/slack_sdk/models/basic_objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ <h1 class="title">Module <code>slack_sdk.models.basic_objects</code></h1>
return f&#34;&lt;slack_sdk.{self.__class__.__name__}&gt;&#34;


# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST = [
{&#34;type&#34;: &#34;rich_text_section&#34;, &#34;property&#34;: &#34;elements&#34;},
{&#34;type&#34;: &#34;rich_text_list&#34;, &#34;property&#34;: &#34;elements&#34;},
{&#34;type&#34;: &#34;rich_text_preformatted&#34;, &#34;property&#34;: &#34;elements&#34;},
{&#34;type&#34;: &#34;rich_text_quote&#34;, &#34;property&#34;: &#34;elements&#34;},
]


class JsonObject(BaseObject, metaclass=ABCMeta):
&#34;&#34;&#34;The base class for JSON serializable class objects&#34;&#34;&#34;

Expand Down Expand Up @@ -79,6 +88,14 @@ <h1 class="title">Module <code>slack_sdk.models.basic_objects</code></h1>
value = getattr(self, key, None)
if value is None:
return False

# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
# The following code deals with these exceptions:
type_value = getattr(self, &#34;type&#34;, None)
for empty_allowed in EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST:
if type_value == empty_allowed[&#34;type&#34;] and key == empty_allowed[&#34;property&#34;]:
return True

has_len = getattr(value, &#34;__len__&#34;, None) is not None
if has_len: # skipcq: PYL-R1705
return len(value) &gt; 0
Expand Down Expand Up @@ -244,6 +261,14 @@ <h3>Ancestors</h3>
value = getattr(self, key, None)
if value is None:
return False

# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
# The following code deals with these exceptions:
type_value = getattr(self, &#34;type&#34;, None)
for empty_allowed in EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST:
if type_value == empty_allowed[&#34;type&#34;] and key == empty_allowed[&#34;property&#34;]:
return True

has_len = getattr(value, &#34;__len__&#34;, None) is not None
if has_len: # skipcq: PYL-R1705
return len(value) &gt; 0
Expand Down Expand Up @@ -357,6 +382,14 @@ <h3>Methods</h3>
value = getattr(self, key, None)
if value is None:
return False

# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
# The following code deals with these exceptions:
type_value = getattr(self, &#34;type&#34;, None)
for empty_allowed in EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST:
if type_value == empty_allowed[&#34;type&#34;] and key == empty_allowed[&#34;property&#34;]:
return True

has_len = getattr(value, &#34;__len__&#34;, None) is not None
if has_len: # skipcq: PYL-R1705
return len(value) &gt; 0
Expand Down
16 changes: 16 additions & 0 deletions docs/static/api-docs/slack_sdk/models/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,14 @@ <h3>Ancestors</h3>
value = getattr(self, key, None)
if value is None:
return False

# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
# The following code deals with these exceptions:
type_value = getattr(self, &#34;type&#34;, None)
for empty_allowed in EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST:
if type_value == empty_allowed[&#34;type&#34;] and key == empty_allowed[&#34;property&#34;]:
return True

has_len = getattr(value, &#34;__len__&#34;, None) is not None
if has_len: # skipcq: PYL-R1705
return len(value) &gt; 0
Expand Down Expand Up @@ -407,6 +415,14 @@ <h3>Methods</h3>
value = getattr(self, key, None)
if value is None:
return False

# Usually, Block Kit components do not allow an empty array for a property value, but there are some exceptions.
# The following code deals with these exceptions:
type_value = getattr(self, &#34;type&#34;, None)
for empty_allowed in EMPTY_ALLOWED_TYPE_AND_PROPERTY_LIST:
if type_value == empty_allowed[&#34;type&#34;] and key == empty_allowed[&#34;property&#34;]:
return True

has_len = getattr(value, &#34;__len__&#34;, None) is not None
if has_len: # skipcq: PYL-R1705
return len(value) &gt; 0
Expand Down
2 changes: 1 addition & 1 deletion docs/static/api-docs/slack_sdk/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1 class="title">Module <code>slack_sdk.version</code></h1>
<span>Expand source code</span>
</summary>
<pre><code class="python">&#34;&#34;&#34;Check the latest version at https://pypi.org/project/slack-sdk/&#34;&#34;&#34;
__version__ = &#34;3.33.2&#34;</code></pre>
__version__ = &#34;3.33.3&#34;</code></pre>
</details>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
__version__ = "3.33.2"
__version__ = "3.33.3"

0 comments on commit 1d0fda6

Please sign in to comment.