Skip to content

Commit 5c5c17e

Browse files
aseembits93claude
andcommitted
Fix ruff lint: use double quotes and wrap long line
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9e2579b commit 5c5c17e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

codeflash/languages/java/instrumentation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,9 @@ def _erase_method_type_params(return_type: str, method_node: Any) -> str:
541541
if child.type == "type_parameter":
542542
name_node = child.child_by_field_name("name") or (child.children[0] if child.children else None)
543543
if name_node:
544-
type_var_names.add(name_node.text.decode("utf8") if isinstance(name_node.text, bytes) else str(name_node.text))
544+
type_var_names.add(
545+
name_node.text.decode("utf8") if isinstance(name_node.text, bytes) else str(name_node.text)
546+
)
545547

546548
if not type_var_names:
547549
return return_type
@@ -553,7 +555,7 @@ def _erase_method_type_params(return_type: str, method_node: Any) -> str:
553555
# Replace type variables used as generic arguments with '?'
554556
# Match whole-word type variable names that appear as generic type arguments
555557
for tv in type_var_names:
556-
return_type = re.sub(rf'\b{re.escape(tv)}\b', '?', return_type)
558+
return_type = re.sub(rf"\b{re.escape(tv)}\b", "?", return_type)
557559

558560
return return_type
559561

0 commit comments

Comments
 (0)