Skip to content

Commit

Permalink
Return Dict by get_user_context (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauk-slon authored Jan 14, 2023
1 parent 60fe643 commit 6f6aba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions triggers/models.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f6aba4

Please sign in to comment.