add type hint to get_submodels
This commit is contained in:
parent
7bab4e5064
commit
d9f7210460
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue