mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-30 15:18:02 +00:00
Add python lint
This commit is contained in:
parent
6b60f85cc4
commit
a73bac9ed1
3 changed files with 11 additions and 3 deletions
|
@ -447,7 +447,7 @@ class ClassDefVisitor(EmitVisitor):
|
|||
self.emit(f"struct {structname};", depth)
|
||||
self.emit("#[pyclass(flags(HAS_DICT, BASETYPE))]", depth)
|
||||
self.emit(f"impl {structname} {{", depth)
|
||||
self.emit(f"#[extend_class]", depth + 1)
|
||||
self.emit("#[extend_class]", depth + 1)
|
||||
self.emit(
|
||||
"fn extend_class_with_fields(ctx: &Context, class: &'static Py<PyType>) {",
|
||||
depth + 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue