-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add py.typed marker indicating provision of inlined types #65
Comments
MarekPikula
added a commit
to MarekPikula/flask-pydantic
that referenced
this issue
Apr 18, 2023
Fixes bauerji#65 - make it pass mypy tests (i.e., improve type hinting) - add mypy test to CI - add py.typed to setup so that other packages recognize it's typed - enable async view function decoration (via ensure_sync() as noted on https://flask.palletsprojects.com/en/latest/async-await/#extensions) Signed-off-by: Marek Pikuła <[email protected]>
MarekPikula
added a commit
to MarekPikula/flask-pydantic
that referenced
this issue
Apr 18, 2023
Fixes bauerji#65 - make it pass mypy tests (i.e., improve type hinting) - add mypy test to CI - add py.typed to setup so that other packages recognize it's typed - enable async view function decoration (via ensure_sync() as noted on https://flask.palletsprojects.com/en/latest/async-await/#extensions) Signed-off-by: Marek Pikuła <[email protected]>
MarekPikula
added a commit
to MarekPikula/flask-pydantic
that referenced
this issue
Apr 18, 2023
Fixes bauerji#65 - make it pass mypy tests (i.e., improve type hinting) - add mypy test to CI - add py.typed to setup so that other packages recognize it's typed - enable async view function decoration (via ensure_sync() as noted on https://flask.palletsprojects.com/en/latest/async-await/#extensions) Signed-off-by: Marek Pikuła <[email protected]>
MarekPikula
added a commit
to MarekPikula/flask-pydantic
that referenced
this issue
Apr 18, 2023
Fixes bauerji#65 - make it pass mypy tests (i.e., improve type hinting) - add mypy test to CI - add py.typed to setup so that other packages recognize it's typed - enable async view function decoration (via ensure_sync() as noted on https://flask.palletsprojects.com/en/latest/async-await/#extensions) Signed-off-by: Marek Pikuła <[email protected]>
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when enabling pylance/pyright typing i encountered some errors related to flask-pydantic. when i reached out to the maintainer
microsoft/pyright#4733 (comment)
he provided this feedback.
The flask_pydantic package appears to have inline type annotations within its own code. However, it is not marked as "py.typed" (i.e. it doesn't have a "py.typed" marker file indicating that it has inlined types). You may want to reach out to the maintainers of the library to encourage them to add this marker file. For more details, refer to this documentation.
i'm happy to give this a shot with a PR but wanted to have some discussion about it first. Thanks in advance!
The text was updated successfully, but these errors were encountered: