Skip to content

Fix mypy typing for mutable query data#387

Open
aladagemre wants to merge 3 commits intoalanjds:masterfrom
aladagemre:codex/fix-mypy-errors-in-viewsets.py
Open

Fix mypy typing for mutable query data#387
aladagemre wants to merge 3 commits intoalanjds:masterfrom
aladagemre:codex/fix-mypy-errors-in-viewsets.py

Conversation

@aladagemre
Copy link

No description provided.

@aladagemre
Copy link
Author

@alanjds Low hanging fruit here to make the checks pass.

@alanjds
Copy link
Owner

alanjds commented Jan 19, 2026

Hi @aladagemre. Thanks for your contribution.

About typing, let me review some past positions:

#339 (review)
#339 (review)
#339 (comment)

Bottomline, I would prefer to

  • Go with a lighter typing instead: dict[str, Any] | list[dict] and it is done :)
  • Applying # type: ignore instead of cast

Would that be acceptable for you?

@aladagemre
Copy link
Author

Sure go ahead 👍

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.

2 participants