Passed
Pull Request — main (#389)
by
unknown
01:56
created

pincer.commands.components.component_handler.ComponentHandler.register_id()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 3
1
# Copyright Pincer 2021-Present
0 ignored issues
show
introduced by
Missing module docstring
Loading history...
2
# Full MIT License can be found in `LICENSE` at the project root.
3
4
from typing import Callable, Dict
5
6
from ...utils.types import Singleton
7
8
9
class ComponentHandler(metaclass=Singleton):
10
    """Handles registered components
11
12
    Attributes
13
    ----------
14
    register : Dict[:class:`str`, :class:`Callable`]
15
        Dictionary of registered buttons.
16
    """
17
18
    register: Dict[str, Callable] = {}
19