Skip to content

Commit

Permalink
Fixed pre commit issue
Browse files Browse the repository at this point in the history
* Removed unused import
* Marked unreachable test code
  • Loading branch information
jjurgens0 committed Feb 14, 2023
1 parent 45d4404 commit 28f6c9c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/corsheaders/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_settings(**kwargs: Any) -> list[CheckMessage]:
)

if not isinstance(conf.CORS_ALLOW_PRIVATE_NETWORK_ACCESS, bool):
errors.append(
errors.append( # type: ignore [unreachable]
Error(
"CORS_ALLOW_PRIVATE_NETWORK_ACCESS should be a bool.",
id="corsheaders.E015",
Expand Down
1 change: 0 additions & 1 deletion tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from corsheaders.middleware import ACCESS_CONTROL_ALLOW_PRIVATE_NETWORK
from corsheaders.middleware import ACCESS_CONTROL_EXPOSE_HEADERS
from corsheaders.middleware import ACCESS_CONTROL_MAX_AGE
from corsheaders.middleware import ACCESS_CONTROL_REQUEST_PRIVATE_NETWORK
from tests.utils import append_middleware
from tests.utils import prepend_middleware
from tests.utils import temporary_check_request_hander
Expand Down

0 comments on commit 28f6c9c

Please sign in to comment.