mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Apply several lints
This commit is contained in:
@@ -206,6 +206,9 @@ def _write_class_init(tlobject, kind, type_constructors, builder):
|
||||
if not tlobject.real_args:
|
||||
return
|
||||
|
||||
if any(a.name in __builtins__ for a in tlobject.real_args):
|
||||
builder.writeln('# noinspection PyShadowingBuiltins')
|
||||
|
||||
builder.writeln("def __init__({}):", ', '.join(['self'] + args))
|
||||
builder.writeln('"""')
|
||||
if tlobject.is_function:
|
||||
|
Reference in New Issue
Block a user