Skip to content

Commit 897a37f

Browse files
committed
Remove useless type hint in src/godot/builtins_pyx/class.pxi.j2
1 parent b241725 commit 897a37f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/godot/builtins_pyx/class.pxi.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
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
3030
def {{ name_prefix }}{{ m.name }}(self, {{ m.type.cy_type }} val):

0 commit comments

Comments
 (0)