add type hint to get_submodels

This commit is contained in:
Laura Klünder 2017-06-21 19:16:21 +02:00
parent 7bab4e5064
commit d9f7210460

View file

@ -131,7 +131,7 @@ class ModelWrapper(BaseWrapper):
return create_editor_form(self._obj)
@classmethod
def get_submodels(cls, model: models.Model):
def get_submodels(cls, model: models.Model) -> typing.List[typing.Type[models.Model]]:
"""
Get non-abstract submodels for a model including the model itself.
Result is cached.