зеркало из https://github.com/mozilla/django-csp.git
Remove ignore comment after django-stubs fix
django.core.checks.registry.CheckRegistry.register is now typed correctly.
This commit is contained in:
Родитель
e23ef0f512
Коммит
35341b2822
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче