Skip to content

run mypy and fix types#336

Merged
vincentsarago merged 7 commits intomainfrom
patch/better-type-definition
Dec 12, 2025
Merged

run mypy and fix types#336
vincentsarago merged 7 commits intomainfrom
patch/better-type-definition

Conversation

@vincentsarago
Copy link
Copy Markdown
Member

This PR does:

  • add mypy command run in CI
  • fix types definition for ✅ ☝️

Comment thread stac_fastapi/pgstac/core.py Outdated
next=next_link,
prev=prev_link,
).get_links()
for collection in collections["collections"]:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because dictionaries/list are mutable we don't need to create a temporary list of collection but we can directly iterate over it and update the values

@vincentsarago vincentsarago requested a review from hrodmn December 11, 2025 22:14
@vincentsarago vincentsarago merged commit 31d124c into main Dec 12, 2025
8 checks passed
@vincentsarago vincentsarago deleted the patch/better-type-definition branch December 12, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant