Implemented support for ast.Pass in the interpeter. (#189)

This commit is contained in:
Aggelos Kyriakoulis 2025-01-14 18:21:38 +02:00 committed by GitHub
parent 5f32373551
commit 77f656c80d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -1334,6 +1334,8 @@ def evaluate_ast(
if expression.value if expression.value
else None else None
) )
elif isinstance(expression, ast.Pass):
return None
else: else:
# For now we refuse anything else. Let's add things as we need them. # For now we refuse anything else. Let's add things as we need them.
raise InterpreterError(f"{expression.__class__.__name__} is not supported.") raise InterpreterError(f"{expression.__class__.__name__} is not supported.")