-
Notifications
You must be signed in to change notification settings - Fork 156
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 support for TypedDict #249
Comments
I agree that this should be done, but I'm not sure how complicated would it be. I'll take a look into it. A lot of things on my plate right now, so it will take some time. |
I don't see an easy way to remove the false positive. Suggestions welcome :-) |
No suggestion, but for other people landing here: You can't use the nicer-looking keyword syntax, because then mypy is going to complain again. 🙂 |
You can also class ProcessResponse(TypedDict):
timer: str # noqa: F841
status: str # noqa: F841
download_filename: str # noqa: F841
filesize: int # noqa: F841
... |
Thanks for the suggestions! I'd use a whitelist module for this. I don't see a way to bake support for this into Vulture. Example whitelist module:
|
snippet:
vulture
saysunused variable 'key' (60% confidence)
, but shouldn'tThe text was updated successfully, but these errors were encountered: