Skip to content

Commit

Permalink
Fix Pylint plugin bug which caused duplicate imports
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Snyman <git@jsnyman.com>
  • Loading branch information
stringlytyped committed May 31, 2024
1 parent 0d8a232 commit 4690017
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keylime/models/base/pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def register(_linter: "PyLinter") -> None:
an abstract syntax tree (AST) and iterating through the ``import`` statements contained within. Called by Pylint
on plugin registration.
"""
if base_exports:
return

path = os.path.dirname(os.path.realpath(__file__))
path = os.path.join(path, "__init__.py")

Expand Down

0 comments on commit 4690017

Please sign in to comment.