bump ver, some cleanup

This commit is contained in:
collerek
2020-11-16 13:10:03 +01:00
parent d478ea6e15
commit 1168159a70
4 changed files with 20 additions and 8 deletions

View File

@ -30,7 +30,7 @@ class UndefinedType: # pragma no cover
Undefined = UndefinedType()
__version__ = "0.4.4"
__version__ = "0.5.0"
__all__ = [
"Integer",
"BigInteger",

View File

@ -234,7 +234,7 @@ class Model(NewBaseModel):
@staticmethod
async def _update_and_follow(
rel: "Model", follow: bool, visited: Set, update_count: int
rel: T, follow: bool, visited: Set, update_count: int
) -> Tuple[int, Set]:
if follow and rel.__class__ not in visited:
update_count = await rel.save_related(