mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 00:04:14 +03:00
parent
6759beac21
commit
5f0faee013
|
@ -129,9 +129,11 @@ class TLGenerator:
|
|||
builder.writeln(
|
||||
'from {}.tl.tlobject import TLObject'.format('.' * depth)
|
||||
)
|
||||
builder.writeln(
|
||||
'from {}.tl import types'.format('.' * depth)
|
||||
)
|
||||
if ns:
|
||||
# Only import the parent types if we're not in such file
|
||||
builder.writeln(
|
||||
'from {}.tl import types'.format('.' * depth)
|
||||
)
|
||||
|
||||
# Add the relative imports to the namespaces,
|
||||
# unless we already are in a namespace.
|
||||
|
|
Loading…
Reference in New Issue
Block a user