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
2 changes: 1 addition & 1 deletion docs/reference/audit_logs/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
):
if self.logger.level &lt;= logging.DEBUG:
self.logger.info(
f&#34;A retry handler found: {type(handler).__name__} &#34; f&#34;for {http_verb} {url} - {e}&#34;
f&#34;A retry handler found: {type(handler).__name__} for {http_verb} {url} - {e}&#34;
)
await handler.prepare_for_next_attempt_async(
state=retry_state,
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/audit_logs/v1/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
):
if self.logger.level &lt;= logging.DEBUG:
self.logger.info(
f&#34;A retry handler found: {type(handler).__name__} &#34; f&#34;for {http_verb} {url} - {e}&#34;
f&#34;A retry handler found: {type(handler).__name__} for {http_verb} {url} - {e}&#34;
)
await handler.prepare_for_next_attempt_async(
state=retry_state,
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/models/basic_objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3>Subclasses</h3>
</summary>
<pre><code class="python">class EnumValidator(JsonValidator):
def __init__(self, attribute: str, enum: Iterable[str]):
super().__init__(f&#34;{attribute} attribute must be one of the following values: &#34; f&#34;{&#39;, &#39;.join(enum)}&#34;)</code></pre>
super().__init__(f&#34;{attribute} attribute must be one of the following values: {&#39;, &#39;.join(enum)}&#34;)</code></pre>
</details>
<div class="desc"><p>Decorate a method on a class to mark it as a JSON validator. Validation
functions should return true if valid, false if not.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/models/blocks/block_elements.html
Original file line number Diff line number Diff line change
Expand Up @@ -2832,7 +2832,7 @@ <h3>Inherited members</h3>
self.options = options
self.confirm = ConfirmObject.parse(confirm) # type: ignore[arg-type]

@JsonValidator(f&#34;options attribute must have between {options_min_length} &#34; f&#34;and {options_max_length} items&#34;)
@JsonValidator(f&#34;options attribute must have between {options_min_length} and {options_max_length} items&#34;)
def _validate_options_length(self) -&gt; bool:
return self.options_min_length &lt;= len(self.options) &lt;= self.options_max_length</code></pre>
</details>
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/models/blocks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5414,7 +5414,7 @@ <h3>Inherited members</h3>
self.options = options
self.confirm = ConfirmObject.parse(confirm) # type: ignore[arg-type]

@JsonValidator(f&#34;options attribute must have between {options_min_length} &#34; f&#34;and {options_max_length} items&#34;)
@JsonValidator(f&#34;options attribute must have between {options_min_length} and {options_max_length} items&#34;)
def _validate_options_length(self) -&gt; bool:
return self.options_min_length &lt;= len(self.options) &lt;= self.options_max_length</code></pre>
</details>
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/models/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ <h3>Subclasses</h3>
</summary>
<pre><code class="python">class EnumValidator(JsonValidator):
def __init__(self, attribute: str, enum: Iterable[str]):
super().__init__(f&#34;{attribute} attribute must be one of the following values: &#34; f&#34;{&#39;, &#39;.join(enum)}&#34;)</code></pre>
super().__init__(f&#34;{attribute} attribute must be one of the following values: {&#39;, &#39;.join(enum)}&#34;)</code></pre>
</details>
<div class="desc"><p>Decorate a method on a class to mark it as a JSON validator. Validation
functions should return true if valid, false if not.</p>
Expand Down
16 changes: 2 additions & 14 deletions docs/reference/oauth/authorize_url_generator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def generate(self, state: str, team: Optional[str] = None) -&gt; str:
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
url = (
f&#34;{self.authorization_url}?&#34;
f&#34;state={state}&amp;&#34;
f&#34;client_id={self.client_id}&amp;&#34;
f&#34;scope={scopes}&amp;&#34;
f&#34;user_scope={user_scopes}&#34;
)
url = f&#34;{self.authorization_url}?state={state}&amp;client_id={self.client_id}&amp;scope={scopes}&amp;user_scope={user_scopes}&#34;
if self.redirect_uri is not None:
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
if team is not None:
Expand All @@ -101,13 +95,7 @@ <h3>Methods</h3>
<pre><code class="python">def generate(self, state: str, team: Optional[str] = None) -&gt; str:
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
url = (
f&#34;{self.authorization_url}?&#34;
f&#34;state={state}&amp;&#34;
f&#34;client_id={self.client_id}&amp;&#34;
f&#34;scope={scopes}&amp;&#34;
f&#34;user_scope={user_scopes}&#34;
)
url = f&#34;{self.authorization_url}?state={state}&amp;client_id={self.client_id}&amp;scope={scopes}&amp;user_scope={user_scopes}&#34;
if self.redirect_uri is not None:
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
if team is not None:
Expand Down
24 changes: 6 additions & 18 deletions docs/reference/oauth/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
def generate(self, state: str, team: Optional[str] = None) -&gt; str:
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
url = (
f&#34;{self.authorization_url}?&#34;
f&#34;state={state}&amp;&#34;
f&#34;client_id={self.client_id}&amp;&#34;
f&#34;scope={scopes}&amp;&#34;
f&#34;user_scope={user_scopes}&#34;
)
url = f&#34;{self.authorization_url}?state={state}&amp;client_id={self.client_id}&amp;scope={scopes}&amp;user_scope={user_scopes}&#34;
if self.redirect_uri is not None:
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
if team is not None:
Expand All @@ -134,13 +128,7 @@ <h3>Methods</h3>
<pre><code class="python">def generate(self, state: str, team: Optional[str] = None) -&gt; str:
scopes = &#34;,&#34;.join(self.scopes) if self.scopes else &#34;&#34;
user_scopes = &#34;,&#34;.join(self.user_scopes) if self.user_scopes else &#34;&#34;
url = (
f&#34;{self.authorization_url}?&#34;
f&#34;state={state}&amp;&#34;
f&#34;client_id={self.client_id}&amp;&#34;
f&#34;scope={scopes}&amp;&#34;
f&#34;user_scope={user_scopes}&#34;
)
url = f&#34;{self.authorization_url}?state={state}&amp;client_id={self.client_id}&amp;scope={scopes}&amp;user_scope={user_scopes}&#34;
if self.redirect_uri is not None:
url += f&#34;&amp;redirect_uri={self.redirect_uri}&#34;
if team is not None:
Expand Down Expand Up @@ -521,10 +509,10 @@ <h3>Methods</h3>
self.expiration_seconds = expiration_seconds

def build_set_cookie_for_new_state(self, state: str) -&gt; str:
return f&#34;{self.cookie_name}={state}; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; f&#34;Max-Age={self.expiration_seconds}&#34;
return f&#34;{self.cookie_name}={state}; Secure; HttpOnly; Path=/; Max-Age={self.expiration_seconds}&#34;

def build_set_cookie_for_deletion(self) -&gt; str:
return f&#34;{self.cookie_name}=deleted; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; &#34;Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;
return f&#34;{self.cookie_name}=deleted; Secure; HttpOnly; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;

def is_valid_browser(
self,
Expand Down Expand Up @@ -575,7 +563,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def build_set_cookie_for_deletion(self) -&gt; str:
return f&#34;{self.cookie_name}=deleted; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; &#34;Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;</code></pre>
return f&#34;{self.cookie_name}=deleted; Secure; HttpOnly; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;</code></pre>
</details>
<div class="desc"></div>
</dd>
Expand All @@ -588,7 +576,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def build_set_cookie_for_new_state(self, state: str) -&gt; str:
return f&#34;{self.cookie_name}={state}; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; f&#34;Max-Age={self.expiration_seconds}&#34;</code></pre>
return f&#34;{self.cookie_name}={state}; Secure; HttpOnly; Path=/; Max-Age={self.expiration_seconds}&#34;</code></pre>
</details>
<div class="desc"></div>
</dd>
Expand Down
8 changes: 4 additions & 4 deletions docs/reference/oauth/state_utils/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
self.expiration_seconds = expiration_seconds

def build_set_cookie_for_new_state(self, state: str) -&gt; str:
return f&#34;{self.cookie_name}={state}; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; f&#34;Max-Age={self.expiration_seconds}&#34;
return f&#34;{self.cookie_name}={state}; Secure; HttpOnly; Path=/; Max-Age={self.expiration_seconds}&#34;

def build_set_cookie_for_deletion(self) -&gt; str:
return f&#34;{self.cookie_name}=deleted; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; &#34;Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;
return f&#34;{self.cookie_name}=deleted; Secure; HttpOnly; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;

def is_valid_browser(
self,
Expand Down Expand Up @@ -126,7 +126,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def build_set_cookie_for_deletion(self) -&gt; str:
return f&#34;{self.cookie_name}=deleted; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; &#34;Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;</code></pre>
return f&#34;{self.cookie_name}=deleted; Secure; HttpOnly; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT&#34;</code></pre>
</details>
<div class="desc"></div>
</dd>
Expand All @@ -139,7 +139,7 @@ <h3>Methods</h3>
<span>Expand source code</span>
</summary>
<pre><code class="python">def build_set_cookie_for_new_state(self, state: str) -&gt; str:
return f&#34;{self.cookie_name}={state}; &#34; &#34;Secure; &#34; &#34;HttpOnly; &#34; &#34;Path=/; &#34; f&#34;Max-Age={self.expiration_seconds}&#34;</code></pre>
return f&#34;{self.cookie_name}={state}; Secure; HttpOnly; Path=/; Max-Age={self.expiration_seconds}&#34;</code></pre>
</details>
<div class="desc"></div>
</dd>
Expand Down
18 changes: 8 additions & 10 deletions docs/reference/rtm/v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

def run_all_error_listeners(self, error: Exception):
self.logger.exception(
f&#34;on_error invoked (session id: {self.session_id()}, &#34; f&#34;error: {type(error).__name__}, message: {error})&#34;
f&#34;on_error invoked (session id: {self.session_id()}, error: {type(error).__name__}, message: {error})&#34;
)
for listener in self.on_error_listeners:
listener(error)
Expand All @@ -394,7 +394,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
if self.logger.level &lt;= logging.DEBUG:
self.logger.debug(f&#34;on_close invoked (session id: {self.session_id()})&#34;)
if self.auto_reconnect_enabled:
self.logger.info(&#34;Received CLOSE event. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;)
self.logger.info(f&#34;Received CLOSE event. Going to reconnect... (session id: {self.session_id()})&#34;)
self.connect_to_new_endpoint()
for listener in self.on_close_listeners:
listener(code, reason)
Expand All @@ -403,14 +403,12 @@ <h2 class="section-title" id="header-classes">Classes</h2>
if self.current_session is not None and self.current_session.is_active():
session_id = self.session_id()
try:
self.logger.info(&#34;Starting to receive messages from a new connection&#34; f&#34; (session id: {session_id})&#34;)
self.logger.info(f&#34;Starting to receive messages from a new connection (session id: {session_id})&#34;)
self.current_session_state.terminated = False
self.current_session.run_until_completion(self.current_session_state)
self.logger.info(&#34;Stopped receiving messages from a connection&#34; f&#34; (session id: {session_id})&#34;)
self.logger.info(f&#34;Stopped receiving messages from a connection (session id: {session_id})&#34;)
except Exception as e:
self.logger.exception(
&#34;Failed to start or stop the current session&#34; f&#34; (session id: {session_id}, error: {e})&#34;
)
self.logger.exception(f&#34;Failed to start or stop the current session (session id: {session_id}, error: {e})&#34;)

def _monitor_current_session(self):
if self.current_app_monitor_started:
Expand All @@ -419,7 +417,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

if self.auto_reconnect_enabled and (self.current_session is None or not self.current_session.is_active()):
self.logger.info(
&#34;The session seems to be already closed. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;
f&#34;The session seems to be already closed. Going to reconnect... (session id: {self.session_id()})&#34;
)
self.connect_to_new_endpoint()
except Exception as e:
Expand Down Expand Up @@ -800,7 +798,7 @@ <h3>Methods</h3>
if self.logger.level &lt;= logging.DEBUG:
self.logger.debug(f&#34;on_close invoked (session id: {self.session_id()})&#34;)
if self.auto_reconnect_enabled:
self.logger.info(&#34;Received CLOSE event. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;)
self.logger.info(f&#34;Received CLOSE event. Going to reconnect... (session id: {self.session_id()})&#34;)
self.connect_to_new_endpoint()
for listener in self.on_close_listeners:
listener(code, reason)</code></pre>
Expand All @@ -817,7 +815,7 @@ <h3>Methods</h3>
</summary>
<pre><code class="python">def run_all_error_listeners(self, error: Exception):
self.logger.exception(
f&#34;on_error invoked (session id: {self.session_id()}, &#34; f&#34;error: {type(error).__name__}, message: {error})&#34;
f&#34;on_error invoked (session id: {self.session_id()}, error: {type(error).__name__}, message: {error})&#34;
)
for listener in self.on_error_listeners:
listener(error)</code></pre>
Expand Down
18 changes: 8 additions & 10 deletions docs/reference/rtm_v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

def run_all_error_listeners(self, error: Exception):
self.logger.exception(
f&#34;on_error invoked (session id: {self.session_id()}, &#34; f&#34;error: {type(error).__name__}, message: {error})&#34;
f&#34;on_error invoked (session id: {self.session_id()}, error: {type(error).__name__}, message: {error})&#34;
)
for listener in self.on_error_listeners:
listener(error)
Expand All @@ -395,7 +395,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
if self.logger.level &lt;= logging.DEBUG:
self.logger.debug(f&#34;on_close invoked (session id: {self.session_id()})&#34;)
if self.auto_reconnect_enabled:
self.logger.info(&#34;Received CLOSE event. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;)
self.logger.info(f&#34;Received CLOSE event. Going to reconnect... (session id: {self.session_id()})&#34;)
self.connect_to_new_endpoint()
for listener in self.on_close_listeners:
listener(code, reason)
Expand All @@ -404,14 +404,12 @@ <h2 class="section-title" id="header-classes">Classes</h2>
if self.current_session is not None and self.current_session.is_active():
session_id = self.session_id()
try:
self.logger.info(&#34;Starting to receive messages from a new connection&#34; f&#34; (session id: {session_id})&#34;)
self.logger.info(f&#34;Starting to receive messages from a new connection (session id: {session_id})&#34;)
self.current_session_state.terminated = False
self.current_session.run_until_completion(self.current_session_state)
self.logger.info(&#34;Stopped receiving messages from a connection&#34; f&#34; (session id: {session_id})&#34;)
self.logger.info(f&#34;Stopped receiving messages from a connection (session id: {session_id})&#34;)
except Exception as e:
self.logger.exception(
&#34;Failed to start or stop the current session&#34; f&#34; (session id: {session_id}, error: {e})&#34;
)
self.logger.exception(f&#34;Failed to start or stop the current session (session id: {session_id}, error: {e})&#34;)

def _monitor_current_session(self):
if self.current_app_monitor_started:
Expand All @@ -420,7 +418,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>

if self.auto_reconnect_enabled and (self.current_session is None or not self.current_session.is_active()):
self.logger.info(
&#34;The session seems to be already closed. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;
f&#34;The session seems to be already closed. Going to reconnect... (session id: {self.session_id()})&#34;
)
self.connect_to_new_endpoint()
except Exception as e:
Expand Down Expand Up @@ -801,7 +799,7 @@ <h3>Methods</h3>
if self.logger.level &lt;= logging.DEBUG:
self.logger.debug(f&#34;on_close invoked (session id: {self.session_id()})&#34;)
if self.auto_reconnect_enabled:
self.logger.info(&#34;Received CLOSE event. Going to reconnect... &#34; f&#34;(session id: {self.session_id()})&#34;)
self.logger.info(f&#34;Received CLOSE event. Going to reconnect... (session id: {self.session_id()})&#34;)
self.connect_to_new_endpoint()
for listener in self.on_close_listeners:
listener(code, reason)</code></pre>
Expand All @@ -818,7 +816,7 @@ <h3>Methods</h3>
</summary>
<pre><code class="python">def run_all_error_listeners(self, error: Exception):
self.logger.exception(
f&#34;on_error invoked (session id: {self.session_id()}, &#34; f&#34;error: {type(error).__name__}, message: {error})&#34;
f&#34;on_error invoked (session id: {self.session_id()}, error: {type(error).__name__}, message: {error})&#34;
)
for listener in self.on_error_listeners:
listener(error)</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/scim/async_client.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
):
if self.logger.level &lt;= logging.DEBUG:
self.logger.info(
f&#34;A retry handler found: {type(handler).__name__} &#34; f&#34;for {http_verb} {url} - {e}&#34;
f&#34;A retry handler found: {type(handler).__name__} for {http_verb} {url} - {e}&#34;
)
await handler.prepare_for_next_attempt_async(
state=retry_state,
Expand Down
Loading
Loading