Skip to content

Commit 22e5592

Browse files
committed
previewer: relax assertions
1 parent 9ef4fc9 commit 22e5592

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/pytest_fzf/previewer.py

-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ def _parse_tree(
175175
if not hasattr(tree_or_leaf, "body"):
176176
return None
177177

178-
assert isinstance(tree_or_leaf, (ast.Module, ast.ClassDef))
179-
180178
for obj in tree_or_leaf.body:
181179
if hasattr(obj, "body") and (
182180
res := _parse_tree(

0 commit comments

Comments
 (0)