mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
15 lines
232 B
Python
15 lines
232 B
Python
def fn():
|
|
# Error
|
|
exec('x = 2')
|
|
|
|
exec('y = 3')
|
|
|
|
|
|
## https://github.com/astral-sh/ruff/issues/15442
|
|
def _():
|
|
from builtins import exec
|
|
exec('') # Error
|
|
|
|
def _():
|
|
from builtin import exec
|
|
exec('') # No error
|