Module slack_bolt.util.utils
Functions
def convert_to_dict(obj: Union[Dict, slack_sdk.models.basic_objects.JsonObject]) ‑> Dict
def convert_to_dict_list(objects: Sequence[Union[Dict, slack_sdk.models.basic_objects.JsonObject]]) ‑> Sequence[Dict]
def create_copy(original: Any) ‑> Any
def create_web_client(token: Optional[str] = None, logger: Optional[logging.Logger] = None) ‑> slack_sdk.web.client.WebClient
def get_arg_names_of_callable(func: Callable) ‑> List[str]
def get_boot_message(development_server: bool = False) ‑> str
def get_name_for_callable(func: Callable) ‑> str
-
Returns the name for the given Callable function object.
Args
func
- Either a
Callable
instance or a function, which as__name__
Returns
The name of the given Callable object
def is_callable_coroutine(func: Optional[Any]) ‑> bool
def is_used_without_argument(args) ‑> bool
-
Tests if a decorator invocation is without () or (args).
Args
args
- arguments
Returns
True if it's an invocation without args