mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 01:39:47 +03:00
Update tlobject.py
implementation details are details
This commit is contained in:
parent
2e1be01ad4
commit
ea2df49ba8
|
@ -1,3 +1,4 @@
|
||||||
|
import builtins
|
||||||
import functools
|
import functools
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
@ -197,7 +198,7 @@ def _write_class_init(tlobject, kind, type_constructors, builder):
|
||||||
if not tlobject.real_args:
|
if not tlobject.real_args:
|
||||||
return
|
return
|
||||||
|
|
||||||
if any(a.name in __builtins__ for a in tlobject.real_args):
|
if any(a.name in dir(builtins) for a in tlobject.real_args):
|
||||||
builder.writeln('# noinspection PyShadowingBuiltins')
|
builder.writeln('# noinspection PyShadowingBuiltins')
|
||||||
|
|
||||||
builder.writeln("def __init__({}):", ', '.join(['self'] + args))
|
builder.writeln("def __init__({}):", ', '.join(['self'] + args))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user