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

from . import globals as G


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