Skip to content

Commit

Permalink
update type hinting and remove unnecessary supressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuyuutsu committed Jan 24, 2024
1 parent 112b579 commit 3f3f460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/helpers/url_safe_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@


def url_safe_serializer() -> URLSafeSerializer:
return URLSafeSerializer(current_app.secret_key, salt=cookie_session[EQ_SESSION_ID])
secret_key = current_app.secret_key
if secret_key is None:
raise ValueError("Flask application secret key is not set.")
return URLSafeSerializer(secret_key, salt=cookie_session[EQ_SESSION_ID])
1 change: 0 additions & 1 deletion tests/app/data_model/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=redefined-outer-name
from datetime import datetime, timedelta, timezone

import pytest
Expand Down
1 change: 0 additions & 1 deletion tests/app/helpers/test_template_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=too-many-lines
from typing import Type

import pytest
Expand Down

0 comments on commit 3f3f460

Please sign in to comment.