Skip to content

Commit

Permalink
Added explicit type check on list structure due to mypy
Browse files Browse the repository at this point in the history
This seems related to python/mypy#5382
  • Loading branch information
keul committed Dec 12, 2023
1 parent 4a02e69 commit 6c81817
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cads_catalogue_api_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ def generate_collection_links(

url_ref = request.url_for("Get Collections")

additional_links = []
# forced to typecheck here, due to https://github.com/python/mypy/issues/5382
additional_links: list[dict[str, Any]] = []

if model.qa_flag:
additional_links.append(
Expand Down

0 comments on commit 6c81817

Please sign in to comment.