Skip to content

Commit

Permalink
get_file_encoding inconsistent parameters (#709)
Browse files Browse the repository at this point in the history
The base class version of get_file_encoding didn't match the subclasses.
This change corrects that.

Signed-off-by: Eric Brown <[email protected]>
  • Loading branch information
ericwb authored Dec 22, 2024
1 parent 1be62b5 commit 437f693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precli/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def rule_prefix(self) -> str:
"""The prefix for the rule ID"""

@abstractmethod
def get_file_encoding(self, file_path: str) -> str:
def get_file_encoding(self, file_contents: str) -> str:
"""The prefix for the rule ID"""

def is_valid_code(self, code: str) -> bool:
Expand Down

0 comments on commit 437f693

Please sign in to comment.