diff --git a/pyproject.toml b/pyproject.toml index 08b00b3..d0c794e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "dj-triggers" -version = "0.9.0" +version = "0.10.0" description = "" authors = [] readme = "README.md" diff --git a/triggers/models.py b/triggers/models.py index 784e358..28dbe2b 100644 --- a/triggers/models.py +++ b/triggers/models.py @@ -1,6 +1,6 @@ from contextlib import contextmanager import datetime -from typing import Any, Generator, Mapping, Optional, Type +from typing import Any, Dict, Generator, Mapping, Optional, Type from django.conf import settings from django.contrib.auth import get_user_model @@ -133,7 +133,7 @@ def __str__(self) -> str: def should_be_fired(self, **kwargs) -> bool: return True - def get_user_context(self, user, context) -> Mapping[str, Any]: + def get_user_context(self, user, context: Mapping[str, Any]) -> Dict[str, Any]: user_context = {'user': user} user_context.update(context) return user_context