I am writing some Airflow DAG code in Python 3.8, but there is an indentation error which I am unable to figure out. I use VScode as the IDE
Here is the code:
from airflow_env import DAG
from datetime import datetime
with DAG(
dag_id='user-processing',
schedule_interval='@daily',
start_date=datetime(2022, 1, 1)) as dag:
on the terminal, the error says following: unexpected EOF while parsing
but on the IDE I see expected indented block pylance python