File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 5858 hooks :
5959 - id : mypy
6060 additional_dependencies :
61- - django-stubs==1.13 .0
61+ - django-stubs==1.14 .0
Original file line number Diff line number Diff line change 55from typing import Any
66from urllib .parse import urlsplit
77
8- from django .apps import AppConfig
98from django .conf import settings
109from django .core .checks import CheckMessage
1110from django .core .checks import Error
1514re_type = type (re .compile ("" ))
1615
1716
18- def check_settings (app_configs : list [ AppConfig ], ** kwargs : Any ) -> list [CheckMessage ]:
17+ def check_settings (** kwargs : Any ) -> list [CheckMessage ]:
1918 errors : list [CheckMessage ] = []
2019
2120 if not is_sequence (conf .CORS_ALLOW_HEADERS , str ):
Original file line number Diff line number Diff line change 1515
1616class ChecksTests (SimpleTestCase ):
1717 def check_error_codes (self , expected : list [str ]) -> list [CheckMessage ]:
18- errors = check_settings ([] )
18+ errors = check_settings ()
1919 assert len (errors ) == len (expected )
2020 assert all (isinstance (e , Error ) for e in errors )
2121 assert [e .id for e in errors ] == expected
You can’t perform that action at this time.
0 commit comments