You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the --ignore-bodies-if-inherits-from option to drop false positives for class attributes in my GraphQL schema, but it doesn't to work.
$ deadcode ./mymodule.py --ignore-bodies-if-inherits-from graphene.ObjectType
mymodule.py:4:0: DC03 Class `SomeQuery` is never used
mymodule.py:6:4: DC01 Variable `this_field_is_used` is never used
$ deadcode ./mymodule.py --ignore-bodies-if-inherits-from ObjectType
mymodule.py:4:0: DC03 Class `SomeQuery` is never used
mymodule.py:6:4: DC01 Variable `this_field_is_used` is never used
I'm using deadcode==2.4.1
P.S. --ignore-definitions-if-inherits-from doesn't work either.
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to use the
--ignore-bodies-if-inherits-from
option to drop false positives for class attributes in my GraphQL schema, but it doesn't to work.This is easily reproducible:
I'm using
deadcode==2.4.1
P.S.
--ignore-definitions-if-inherits-from
doesn't work either.The text was updated successfully, but these errors were encountered: