mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix imports
This commit is contained in:
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
|
||||
from ..docswriter import DocsWriter
|
||||
from ..parsers import TLObject, Usability
|
||||
from .._misc.utils import snake_to_camel_case
|
||||
from ..utils import snake_to_camel_case
|
||||
|
||||
CORE_TYPES = {
|
||||
'int', 'long', 'int128', 'int256', 'double',
|
||||
|
@@ -7,7 +7,7 @@ from collections import defaultdict
|
||||
from zlib import crc32
|
||||
|
||||
from ..sourcebuilder import SourceBuilder
|
||||
from .._misc.utils import snake_to_camel_case
|
||||
from ..utils import snake_to_camel_case
|
||||
|
||||
AUTO_GEN_NOTICE = \
|
||||
'"""File generated by TLObjects\' generator. All changes will be ERASED"""'
|
||||
@@ -61,10 +61,10 @@ def _write_modules(
|
||||
builder.writeln(AUTO_GEN_NOTICE)
|
||||
|
||||
if kind == 'TLObject':
|
||||
builder.writeln('from .tlobject import TLObject, TLRequest')
|
||||
builder.writeln('from .._misc.tlobject import TLObject, TLRequest')
|
||||
builder.writeln('from . import fn')
|
||||
else:
|
||||
builder.writeln('from .. import TLObject, TLRequest')
|
||||
builder.writeln('from ..._misc.tlobject import TLObject, TLRequest')
|
||||
|
||||
builder.writeln('from typing import Optional, List, '
|
||||
'Union, TYPE_CHECKING')
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import csv
|
||||
import re
|
||||
|
||||
from .._misc.utils import snake_to_camel_case
|
||||
from ..utils import snake_to_camel_case
|
||||
|
||||
# Core base classes depending on the integer error code
|
||||
KNOWN_BASE_CLASSES = {
|
||||
|
@@ -2,7 +2,7 @@ import re
|
||||
import struct
|
||||
import zlib
|
||||
|
||||
from ..._misc.utils import snake_to_camel_case
|
||||
from ...utils import snake_to_camel_case
|
||||
|
||||
# https://github.com/telegramdesktop/tdesktop/blob/4bf66cb6e93f3965b40084771b595e93d0b11bcd/Telegram/SourceFiles/codegen/scheme/codegen_scheme.py#L57-L62
|
||||
WHITELISTED_MISMATCHING_IDS = {
|
||||
|
Reference in New Issue
Block a user