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:
parent
cef4d7abb0
commit
18b01453cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue