Skip to content

Commit 1fd9ef6

Browse files
manztakshayka
andauthored
Update marimo/_ast/parse.py
Co-authored-by: Akshay Agrawal <akshay@marimo.io>
1 parent 1b0d9f0 commit 1fd9ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marimo/_ast/parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def parse_notebook(contents: str) -> Optional[NotebookSerialization]:
840840
)
841841

842842
remaining = parser.extractor.contents[len(header.value) :]
843-
if len(remaining.strip()) != 0:
843+
if remaining.strip():
844844
# just a header is fine, anything else we would ignore and override
845845
violations.append(
846846
Violation(

0 commit comments

Comments
 (0)