Closed ssurbhi560 closed 5 years ago
Thank you @ssurbhi560 for the PR!
Your tests are failing because currently Vulture is reporting visit_Constant
method as unused (because it's dynamically called).
You can add the following in vulture/whitelists/ast_whitelist.py
and the tests would go green again:
whitelist_node_visitor.visit_Constant
However, I'm not entirely sure how we can add a test case for this new functionality.
I took the liberty of fixing this here: https://github.com/jendrikseipp/vulture/commit/c5b6417a03736fc25736ea1dcd23385c7c462089
Description
Since visit_Str() is deprecated in Python3.8 so adding the visit_Constant() method . #175
Checklist: