Skip to content

Commit 6a28166

Browse files
pixeebot[bot]github-actions[bot]
authored andcommitted
🎨 Apply formatting
1 parent 85a71f6 commit 6a28166

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/codemodder/codemods/utils_mixin.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ def class_has_method(self, classdef: cst.ClassDef, method_name: str) -> bool:
308308
"""Check if a given class definition implements a method of name `method_name`."""
309309
for node in classdef.body.body:
310310
match node:
311-
case cst.FunctionDef(
312-
name=cst.Name(value=value)
313-
) if value == method_name:
311+
case cst.FunctionDef(name=cst.Name(value=value)) if (
312+
value == method_name
313+
):
314314
return True
315315
return False
316316

@@ -331,7 +331,9 @@ def is_value_of_assignment(
331331
| cst.Assign(value=value)
332332
| cst.WithItem(item=value)
333333
| cst.NamedExpr(value=value)
334-
) if expr == value: # type: ignore
334+
) if (
335+
expr == value
336+
): # type: ignore
335337
return parent
336338
return None
337339

src/codemodder/utils/format_string_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def expressions_from_replacements(
128128

129129

130130
def dict_to_values_dict(
131-
expr_dict: dict[cst.BaseExpression, cst.BaseExpression]
131+
expr_dict: dict[cst.BaseExpression, cst.BaseExpression],
132132
) -> dict[str | cst.BaseExpression, cst.BaseExpression]:
133133
return {
134134
extract_raw_value(k): v

0 commit comments

Comments
 (0)