Skip to content

Commit

Permalink
Fix pep8 style error
Browse files Browse the repository at this point in the history
  • Loading branch information
WingedSeal committed Sep 4, 2023
1 parent a3cc681 commit 208b9b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/jmc/compile/command/jmc_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def load_arg_json(self, parameter: str) -> dict[str, Any]:
:return: JSON
"""
try:
json = loads(self.args[parameter], strict = False)
json = loads(self.args[parameter], strict=False)
except JSONDecodeError as error:
raise JMCDecodeJSONError(
error, self.raw_args[parameter].token, self.tokenizer) from error
Expand Down
2 changes: 1 addition & 1 deletion src/jmc/compile/compiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def read_func_tag(path: Path, config: "Configuration") -> dict[str, Any]:
with path.open("r", encoding="utf-8") as file:
content = file.read()
try:
json: dict[str, Any] = loads(content, strict = False)
json: dict[str, Any] = loads(content, strict=False)
json["values"] = [
value for value in json["values"] if not value.startswith(config.namespace + ":")]
except JSONDecodeError as error:
Expand Down
2 changes: 1 addition & 1 deletion src/jmc/compile/lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def parse_new(self, tokenizer: Tokenizer,
suggestion=f"This json was already defined at line {old_json_token.line} col {old_json_token.col} in {old_json_tokenizer.file_path}")

try:
json: dict[str, str] = loads(json_content, strict = False)
json: dict[str, str] = loads(json_content, strict=False)
except JSONDecodeError as error:
raise JMCDecodeJSONError(error, command[3], tokenizer) from error
if not json:
Expand Down

0 comments on commit 208b9b7

Please sign in to comment.