-
Notifications
You must be signed in to change notification settings - Fork 169
Open
Description
Hi,
I made some searches, but don't think this was requested yet.
It would be great if vulture could detect code that has absolutely no effect.
Couple examples:
def marshal(data: MyClass) -> dict[str, Any]:
uuid.uuid4() # This call is useless
return {
"foo": data.foo,
"bar": str(data.bar),
}
def increment(data: MyClass) -> MyClass
shop_count = 0 # This variable is incremented, but effectively serves no purpose
for element in data.shops:
element.count += 1
shop_count + = 1
return data
Metadata
Metadata
Assignees
Labels
No labels