Skip to content

Commit 6fada80

Browse files
committed
Add noqa comments to suppress linting warnings for nonlocal variable and return statement
1 parent 355ec35 commit 6fada80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codetide/core/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _render_node(node, container_class, parent_id=None):
9898
html_lines.append("</div>")
9999

100100
def _render_file_contents(code_file, container_id, parent_class):
101-
nonlocal html_lines
101+
nonlocal html_lines # noqa: F824
102102

103103
def block(label, name, cls):
104104
return f"<div class='block {cls}'>{label}<br>{name}</div>"

codetide/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class PartialClasses(BaseModel):
245245

246246
@property
247247
def raw(self)->str:
248-
return f"{self.class_header}\n{'\n'.join(self.attributes)}\n{'\n\n'.join(self.methods)}"
248+
return f"{self.class_header}\n{'\n'.join(self.attributes)}\n{'\n\n'.join(self.methods)}" # noqa: E999
249249

250250
class CodeContextStructure(BaseModel):
251251
imports :Dict[str, ImportStatement] = Field(default_factory=dict)

0 commit comments

Comments
 (0)