fix(exporter): some methods had the wrong return types

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2023-10-05 17:15:26 +05:30
parent 92218e443b
commit 85c3be814d
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -137,7 +137,7 @@ class TypeExporter:
return f"from {filepath} import {class_name}", class_name
def _map_fieldtype(self, field) -> type | None:
def _map_fieldtype(self, field) -> str | None:
fieldtype = field.fieldtype.replace(" ", "")
field_definition = ""
@ -194,7 +194,7 @@ class TypeExporter:
def _guess_indentation(
self,
) -> str:
) -> None:
from token import INDENT
with self.controller_path.open() as f: