File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88
99{% macro render_constant (spec , c ) %}
1010{% if c .type .is_scalar %}
11- {{ c.name }}: {{ c.type.py_type }} = {{ c.value }}
11+ {{ c.name }} = {{ c.value }}
1212{% else %}
1313@property
14- def {{ c.name }}(self) -> {{ c.type.py_type }} :
14+ def {{ c.name }}(self):
1515 return {{ c.value }}
1616{% endif %}
1717{% endmacro %}
@@ -24,7 +24,7 @@ def {{ c.name }}(self) -> {{ c.type.py_type }}:
2424
2525{% macro render_transparent_builtin_scalar_property (m , name_prefix , access_prefix ) -%}
2626@property
27- def {{ name_prefix }}{{ m.name }}(self) -> {{ m.type.py_type }} :
27+ def {{ name_prefix }}{{ m.name }}(self):
2828 return {{ access_prefix }}.{{ m.name }}
2929@{{ name_prefix }}{{ m.name }}.setter
3030def {{ name_prefix }}{{ m.name }}(self, {{ m.type.cy_type }} val):
You can’t perform that action at this time.
0 commit comments