aboutsummaryrefslogtreecommitdiffstats
path: root/slack/util.py
blob: 4f9e5dd40488ac72eb808e3b9f96c70b938600bd (plain) (blame)
1
2
3
4
5
6
7
8
from typing import Any, Callable

from .shared import shared


def get_callback_name(callback: Callable[..., Any]) -> str:
    shared.weechat_callbacks[callback.__name__] = callback
    return callback.__name__