Skip to content

Commit

Permalink
Placate mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Babic committed Jan 31, 2025
1 parent d5efe54 commit 87a48ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cms/datavis/views/visualisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_header_title(self) -> "str | Promise":
return _("Copy")

def get_page_subtitle(self) -> "str | Promise":
return capfirst(str(self.object)) # type: ignore[no-any-return]
return capfirst(str(self.object))

def get_bound_panel(self, *args: Any, **kwargs: Any) -> Optional["Panel"]:
"""Overrides EditView.get_bound_panel() to prevent the edit_handler from
Expand Down
2 changes: 1 addition & 1 deletion cms/users/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
class User(AbstractUser): # type: ignore[django-manager-missing]
"""Barebones custom user model."""

0 comments on commit 87a48ef

Please sign in to comment.