build.utils.misc.tg_html   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A mention_html() 0 9 1
1
# -*- coding: utf-8 -*-
2
3
4
from html import escape
5
6
7
async def mention_html(user_id, name):
8
9
    """
10
11
    The function is designed to output a link to a telegram.
12
13
    """
14
15
    return f'<a href="tg://user?id={user_id}">{escape(name)}</a>'
16