Skip to content

Commit 0a6abe0

Browse files
mmahroussfda-odoo
authored andcommitted
[FIX] server: correctly mark classproperty
1 parent d6ea2f2 commit 0a6abe0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/core/python_arch_builder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,10 @@ impl PythonArchBuilder {
666666
else if decorator.expression.as_name_expr().unwrap().id.to_string() == "classmethod" {
667667
func_sym.is_class_method = true;
668668
}
669+
else if decorator.expression.as_name_expr().unwrap().id.to_string() == "classproperty" {
670+
func_sym.is_property = true;
671+
func_sym.is_class_method = true;
672+
}
669673
}
670674
}
671675
if func_def.body[0].is_expr_stmt() {

0 commit comments

Comments
 (0)