MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / _next_cursor_is_present

Function _next_cursor_is_present

slack/web/internal_utils.py:40–52  ·  view source on GitHub ↗

Determine if the response contains 'next_cursor' and 'next_cursor' is not empty. Returns: A boolean value.

(data)

Source from the content-addressed store, hash-verified

38
39
40def _next_cursor_is_present(data) -> bool:
41 """Determine if the response contains 'next_cursor'
42 and 'next_cursor' is not empty.
43
44 Returns:
45 A boolean value.
46 """
47 present = (
48 "response_metadata" in data
49 and "next_cursor" in data["response_metadata"]
50 and data["response_metadata"]["next_cursor"] != ""
51 )
52 return present

Callers 2

__anext__Method · 0.90

Calls

no outgoing calls

Tested by 1