Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Mypy support#1205

samupl started this conversation inIdeas
Mar 14, 2024· 1 comment
Discussion options

Hey,

Would it be possible to have type hints for this library? Currently when using this library in my project where I wanted to add static type checks, mypy complains:

error: Skipping analyzing "rest_framework_json_api.relations": module is installed, but missing library stubs or py.typed marker [import]note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Is that something this library would be interested in supporting?

You must be logged in to vote

Replies: 1 comment

Comment options

Thanks for raising this discussion.

Having mypy support could be something useful for DJA. However, as outlined in our3rd party policy we want to avoid adding too many features to DJA directly. Secondly Django REST framework also seems to have its mypy support in anexternal library.

Therefore, I would prefer seeing such a stubs support in a separate library as well. If anyone is willing to work on this, best to create a repository and raise it here so other people who are interested can join in the effort as well.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@samupl@sliverc

[8]ページ先頭

©2009-2025 Movatter.jp