Skip to content

Commit 2ab1389

Browse files
authored
Fixed type hinting on raw methods
1 parent a522e65 commit 2ab1389

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

compiler/api/template/type.txt

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,5 @@
44

55
from typing import Union
66
from hydrogram import raw
7-
from hydrogram.raw.core import TLObject
87

98
{name} = Union[{types}]
10-
11-
12-
class {name}: # type: ignore
13-
"""{docstring}
14-
"""
15-
16-
QUALNAME = "hydrogram.raw.base.{qualname}"
17-
18-
def __init__(self):
19-
raise TypeError("Base types can only be used for type checking purposes: "
20-
"you tried to use a base type instance as argument, "
21-
"but you need to instantiate one of its constructors instead. "
22-
"More info: https://docs.hydrogram.org/en/latest/telegram/base/{doc_name}.html")

0 commit comments

Comments
 (0)