Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

chore:typo fix #104

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion amarna/rules/GenericGatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def gather(self, fname: str, tree: Tree) -> GenericGatherType:
return self.get_gathered_data()

def get_gathered_data(self) -> GenericGatherType:
# Overriden in inherited class
# Overridden in inherited class
# TODO (montyly): use abc?
return self.results
2 changes: 1 addition & 1 deletion amarna/rules/local_rules/UninitializedVariableRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def code_element_function(self, tree: Tree) -> None:
assigned_variables: Set[Token] = set()

for local_declaration in tree.find_data("code_element_local_var"):
# only gather unintialized locals
# only gather uninitialized locals
if len(local_declaration.children) == 1:
for child in local_declaration.children[0].find_data("identifier_def"):
local_variables.add(child.children[0])
Expand Down
2 changes: 1 addition & 1 deletion amarna/rules/local_rules/UnknownDecoratorRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def code_element_function(self, tree: Tree) -> None:
unknown_decorators.append(decorator)

for arg in unknown_decorators:
# TODO (montyly): mypy compain about the next attributes access
# TODO (montyly): mypy complain about the next attributes access
positions = PositionType(arg.line, arg.column, arg.end_line, arg.end_column) # type: ignore
sarif = create_result(
self.fname,
Expand Down