Skip to content

Commit

Permalink
Initialize the noqa_lines field in the constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoknjas committed Oct 4, 2024
1 parent ac165f0 commit ce6aed1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vulture/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def get_list(typ):
self.filename = Path()
self.code = []
self.exit_code = ExitCode.NoDeadCode
self.noqa_lines = {}

def scan(self, code, filename=""):
filename = Path(filename)
Expand Down

0 comments on commit ce6aed1

Please sign in to comment.