forked from pyrogram/pyrogram
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtype.txt
More file actions
23 lines (16 loc) · 635 Bytes
/
Copy pathtype.txt
File metadata and controls
23 lines (16 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{notice}
{warning}
from typing import Union
from pyrogram import raw
from pyrogram.raw.core import TLObject
{name} = Union[{types}]
# noinspection PyRedeclaration
class {name}: # type: ignore
"""{docstring}
"""
QUALNAME = "pyrogram.raw.base.{qualname}"
def __init__(self):
raise TypeError("Base types can only be used for type checking purposes: "
"you tried to use a base type instance as argument, "
"but you need to instantiate one of its constructors instead. "
"More info: https://docs.pyrogram.org/telegram/base/{doc_name}")