Skip to content

Commit

Permalink
pyline: Fix pylint error for frontend datatypes
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan committed Jan 22, 2025
1 parent 93943dd commit eb3eea2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fuzz_introspector/frontends/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
# limitations under the License.
#
################################################################################
"""Datatype classes for tree-sitter frontend."""

# pylint: disable=unnecessary-pass, unused-argument

from typing import Any, Optional, Generic, TypeVar

Expand Down Expand Up @@ -46,13 +49,14 @@ def __init__(self,
source_file: str,
entrypoint: str = '',
source_content: Optional[bytes] = None):
logger.info('Processing %s' % source_file)
logger.info('Processing %s', source_file)

self.root = None
self.source_file = source_file
self.language = language
self.entrypoint = entrypoint
self.tree_sitter_lang = self.LANGUAGE.get(language)
self.tree_sitter_lang = self.LANGUAGE.get(language,
self.LANGUAGE['cpp'])
self.parser = Parser(self.tree_sitter_lang)

if source_content:
Expand Down

0 comments on commit eb3eea2

Please sign in to comment.