We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f056a1 commit bf83f57Copy full SHA for bf83f57
compiler/api/template/type.txt
@@ -4,22 +4,8 @@
4
5
from typing import Union
6
from pyrogram import raw
7
-from pyrogram.raw.core import TLObject
8
9
{name} = Union[{types}]
10
-
11
12
-# noinspection PyRedeclaration
13
-class {name}: # type: ignore
14
- """{docstring}
15
- """
16
17
- QUALNAME = "pyrogram.raw.base.{qualname}"
18
19
- def __init__(self):
20
- raise TypeError(
21
- "Base types can only be used for type checking purposes: "
22
- "you tried to use a base type instance as argument, "
23
- "but you need to instantiate one of its constructors instead. "
24
- "More info: https://telegramplayground.github.io/pyrogram/telegram/base/{doc_name}"
25
- )
+{name}.__doc__ = """
+ {docstring}
+"""
0 commit comments