Skip to content

Conversation

@vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Apr 17, 2025

closes #814

Note:

in https://github.com/stac-utils/stac-fastapi/blob/main/CONTRIBUTING.md we says we run mypy during pre-commit but it's not true. The lib is not type checked 😓

I've ran mypy locally but it returns to many complex errors. I've fixed some with this PR but I'm going to open an issue about to plan a bigger chunk of work on type hints

@vincentsarago vincentsarago requested a review from gadomski April 17, 2025 18:06
"from": NotRequired[Union[int, float]],
"to": NotRequired[Optional[Union[int, float]]],
},
)
Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't caught that when reviewing the original PR but it was defining a type: TypedDict with Pydantic field 🤷

@vincentsarago vincentsarago mentioned this pull request Apr 17, 2025
@vincentsarago vincentsarago merged commit 78a6f97 into main Apr 18, 2025
7 checks passed
@vincentsarago vincentsarago deleted the patch/improve-typing branch April 18, 2025 08:20
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.

Suspicious TypedDict typing

2 participants