Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/reference/models/blocks/basic_components.html
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ <h3>Inherited members</h3>
):
&#34;&#34;&#34;
A feedback button element object for either positive or negative feedback.
https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields

Args:
text (required): An object containing some text. Maximum length for this field is 75 characters.
Expand Down Expand Up @@ -410,7 +411,8 @@ <h3>Inherited members</h3>
return json</code></pre>
</details>
<div class="desc"><p>The base class for JSON serializable class objects</p>
<p>A feedback button element object for either positive or negative feedback.</p>
<p>A feedback button element object for either positive or negative feedback.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields">https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>text</code></strong> :&ensp;<code>required</code></dt>
Expand Down
11 changes: 9 additions & 2 deletions docs/reference/models/blocks/block_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -1868,6 +1868,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;Buttons to indicate positive or negative feedback.
https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element

Args:
action_id (required): An identifier for this action.
Expand All @@ -1885,7 +1886,8 @@ <h3>Inherited members</h3>
</details>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/">https://docs.slack.dev/reference/block-kit/block-elements/</a></p>
<p>Buttons to indicate positive or negative feedback.</p>
<p>Buttons to indicate positive or negative feedback.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element">https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action_id</code></strong> :&ensp;<code>required</code></dt>
Expand Down Expand Up @@ -2074,6 +2076,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;An icon button to perform actions.
https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element

Args:
action_id: An identifier for this action.
Expand Down Expand Up @@ -2103,7 +2106,8 @@ <h3>Inherited members</h3>
</details>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/">https://docs.slack.dev/reference/block-kit/block-elements/</a></p>
<p>An icon button to perform actions.</p>
<p>An icon button to perform actions.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element">https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action_id</code></strong></dt>
Expand Down Expand Up @@ -3225,18 +3229,21 @@ <h3>Inherited members</h3>
italic: Optional[bool] = None,
strike: Optional[bool] = None,
code: Optional[bool] = None,
underline: Optional[bool] = None,
):
self.bold = bold
self.italic = italic
self.strike = strike
self.code = code
self.underline = underline

def to_dict(self, *args) -&gt; dict:
result = {
&#34;bold&#34;: self.bold,
&#34;italic&#34;: self.italic,
&#34;strike&#34;: self.strike,
&#34;code&#34;: self.code,
&#34;underline&#34;: self.underline,
}
return {k: v for k, v in result.items() if v is not None}

Expand Down
4 changes: 3 additions & 1 deletion docs/reference/models/blocks/blocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;Displays actions as contextual info, which can include both feedback buttons and icon buttons.
https://docs.slack.dev/reference/block-kit/blocks/context-actions-block

Args:
elements (required): An array of feedback_buttons or icon_button block elements. Maximum number of items is 5.
Expand All @@ -457,7 +458,8 @@ <h3>Inherited members</h3>
<div class="desc"><p>Blocks are a series of components that can be combined
to create visually rich and compellingly interactive messages.
<a href="https://docs.slack.dev/reference/block-kit/blocks">https://docs.slack.dev/reference/block-kit/blocks</a></p>
<p>Displays actions as contextual info, which can include both feedback buttons and icon buttons.</p>
<p>Displays actions as contextual info, which can include both feedback buttons and icon buttons.
<a href="https://docs.slack.dev/reference/block-kit/blocks/context-actions-block">https://docs.slack.dev/reference/block-kit/blocks/context-actions-block</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>elements</code></strong> :&ensp;<code>required</code></dt>
Expand Down
19 changes: 15 additions & 4 deletions docs/reference/models/blocks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;Displays actions as contextual info, which can include both feedback buttons and icon buttons.
https://docs.slack.dev/reference/block-kit/blocks/context-actions-block

Args:
elements (required): An array of feedback_buttons or icon_button block elements. Maximum number of items is 5.
Expand All @@ -1393,7 +1394,8 @@ <h3>Inherited members</h3>
<div class="desc"><p>Blocks are a series of components that can be combined
to create visually rich and compellingly interactive messages.
<a href="https://docs.slack.dev/reference/block-kit/blocks">https://docs.slack.dev/reference/block-kit/blocks</a></p>
<p>Displays actions as contextual info, which can include both feedback buttons and icon buttons.</p>
<p>Displays actions as contextual info, which can include both feedback buttons and icon buttons.
<a href="https://docs.slack.dev/reference/block-kit/blocks/context-actions-block">https://docs.slack.dev/reference/block-kit/blocks/context-actions-block</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>elements</code></strong> :&ensp;<code>required</code></dt>
Expand Down Expand Up @@ -2762,6 +2764,7 @@ <h3>Inherited members</h3>
):
&#34;&#34;&#34;
A feedback button element object for either positive or negative feedback.
https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields

Args:
text (required): An object containing some text. Maximum length for this field is 75 characters.
Expand Down Expand Up @@ -2794,7 +2797,8 @@ <h3>Inherited members</h3>
return json</code></pre>
</details>
<div class="desc"><p>The base class for JSON serializable class objects</p>
<p>A feedback button element object for either positive or negative feedback.</p>
<p>A feedback button element object for either positive or negative feedback.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields">https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element#button-object-fields</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>text</code></strong> :&ensp;<code>required</code></dt>
Expand Down Expand Up @@ -2901,6 +2905,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;Buttons to indicate positive or negative feedback.
https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element

Args:
action_id (required): An identifier for this action.
Expand All @@ -2918,7 +2923,8 @@ <h3>Inherited members</h3>
</details>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/">https://docs.slack.dev/reference/block-kit/block-elements/</a></p>
<p>Buttons to indicate positive or negative feedback.</p>
<p>Buttons to indicate positive or negative feedback.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element">https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action_id</code></strong> :&ensp;<code>required</code></dt>
Expand Down Expand Up @@ -3196,6 +3202,7 @@ <h3>Inherited members</h3>
**others: dict,
):
&#34;&#34;&#34;An icon button to perform actions.
https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element

Args:
action_id: An identifier for this action.
Expand Down Expand Up @@ -3225,7 +3232,8 @@ <h3>Inherited members</h3>
</details>
<div class="desc"><p>Block Elements are things that exists inside of your Blocks.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/">https://docs.slack.dev/reference/block-kit/block-elements/</a></p>
<p>An icon button to perform actions.</p>
<p>An icon button to perform actions.
<a href="https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element">https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element</a></p>
<h2 id="args">Args</h2>
<dl>
<dt><strong><code>action_id</code></strong></dt>
Expand Down Expand Up @@ -5617,18 +5625,21 @@ <h3>Inherited members</h3>
italic: Optional[bool] = None,
strike: Optional[bool] = None,
code: Optional[bool] = None,
underline: Optional[bool] = None,
):
self.bold = bold
self.italic = italic
self.strike = strike
self.code = code
self.underline = underline

def to_dict(self, *args) -&gt; dict:
result = {
&#34;bold&#34;: self.bold,
&#34;italic&#34;: self.italic,
&#34;strike&#34;: self.strike,
&#34;code&#34;: self.code,
&#34;underline&#34;: self.underline,
}
return {k: v for k, v in result.items() if v is not None}

Expand Down
28 changes: 16 additions & 12 deletions docs/reference/scim/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Users/{quote(id)}&#34;,
body_params=partial_user.to_dict()
if isinstance(partial_user, User)
else _to_dict_without_not_given(partial_user),
body_params=(
partial_user.to_dict() if isinstance(partial_user, User) else _to_dict_without_not_given(partial_user)
),
)
)

Expand Down Expand Up @@ -228,9 +228,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Groups/{quote(id)}&#34;,
body_params=partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group),
body_params=(
partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group)
),
)
)

Expand Down Expand Up @@ -620,9 +622,11 @@ <h3>Methods</h3>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Groups/{quote(id)}&#34;,
body_params=partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group),
body_params=(
partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group)
),
)
)</code></pre>
</details>
Expand All @@ -641,9 +645,9 @@ <h3>Methods</h3>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Users/{quote(id)}&#34;,
body_params=partial_user.to_dict()
if isinstance(partial_user, User)
else _to_dict_without_not_given(partial_user),
body_params=(
partial_user.to_dict() if isinstance(partial_user, User) else _to_dict_without_not_given(partial_user)
),
)
)</code></pre>
</details>
Expand Down
28 changes: 16 additions & 12 deletions docs/reference/scim/v1/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ <h2 class="section-title" id="header-classes">Classes</h2>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Users/{quote(id)}&#34;,
body_params=partial_user.to_dict()
if isinstance(partial_user, User)
else _to_dict_without_not_given(partial_user),
body_params=(
partial_user.to_dict() if isinstance(partial_user, User) else _to_dict_without_not_given(partial_user)
),
)
)

Expand Down Expand Up @@ -228,9 +228,11 @@ <h2 class="section-title" id="header-classes">Classes</h2>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Groups/{quote(id)}&#34;,
body_params=partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group),
body_params=(
partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group)
),
)
)

Expand Down Expand Up @@ -620,9 +622,11 @@ <h3>Methods</h3>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Groups/{quote(id)}&#34;,
body_params=partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group),
body_params=(
partial_group.to_dict()
if isinstance(partial_group, Group)
else _to_dict_without_not_given(partial_group)
),
)
)</code></pre>
</details>
Expand All @@ -641,9 +645,9 @@ <h3>Methods</h3>
await self.api_call(
http_verb=&#34;PATCH&#34;,
path=f&#34;Users/{quote(id)}&#34;,
body_params=partial_user.to_dict()
if isinstance(partial_user, User)
else _to_dict_without_not_given(partial_user),
body_params=(
partial_user.to_dict() if isinstance(partial_user, User) else _to_dict_without_not_given(partial_user)
),
)
)</code></pre>
</details>
Expand Down
16 changes: 8 additions & 8 deletions docs/reference/socket_mode/websocket_client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>

self.current_session = websocket.WebSocketApp(
self.wss_uri,
on_open=on_open, # type: ignore[arg-type]
on_message=on_message, # type: ignore[arg-type]
on_error=on_error, # type: ignore[arg-type]
on_close=on_close, # type: ignore[arg-type]
on_open=on_open,
on_message=on_message,
on_error=on_error,
on_close=on_close,
)
self.auto_reconnect_enabled = self.default_auto_reconnect_enabled

Expand Down Expand Up @@ -441,10 +441,10 @@ <h3>Methods</h3>

self.current_session = websocket.WebSocketApp(
self.wss_uri,
on_open=on_open, # type: ignore[arg-type]
on_message=on_message, # type: ignore[arg-type]
on_error=on_error, # type: ignore[arg-type]
on_close=on_close, # type: ignore[arg-type]
on_open=on_open,
on_message=on_message,
on_error=on_error,
on_close=on_close,
)
self.auto_reconnect_enabled = self.default_auto_reconnect_enabled

Expand Down
2 changes: 1 addition & 1 deletion slack_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""

__version__ = "3.37.0"
__version__ = "3.38.0"