fix: don't generate type information for virtual fields (#31592)

* fix: 🐛 don't generate type information for virtual fields

this leads to linter errors for redeclaration

* fix: 🐛 don't dontype information for virtual fields

Co-authored-by: gavin <gavin18d@gmail.com>

---------

Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
Markus Lobedann 2025-03-13 13:55:13 +01:00 committed by GitHub
parent cef4d7abb0
commit 18b01453cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,6 +99,8 @@ class TypeExporter:
for field in self.doc.fields:
if iskeyword(field.fieldname):
continue
if field.is_virtual and not field.options:
continue
if python_type := self._map_fieldtype(field):
self.field_types[field.fieldname] = python_type