Skip to content

Commit

Permalink
Remove ignore comment after django-stubs fix
Browse files Browse the repository at this point in the history
django.core.checks.registry.CheckRegistry.register is now typed correctly.
  • Loading branch information
robhudson committed Sep 12, 2024
1 parent e23ef0f commit 35341b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions csp/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ class CspConfig(AppConfig):
name = "csp"

def ready(self) -> None:
# Ignore known issue typeddjango/django-stubs #2232
# The overload of CheckRegistry.register as a function is incomplete
checks.register(check_django_csp_lt_4_0, checks.Tags.security) # type: ignore
checks.register(check_django_csp_lt_4_0, checks.Tags.security)

0 comments on commit 35341b2

Please sign in to comment.