MatrixManAtYrService commented on issue #22843:
URL: https://github.com/apache/airflow/issues/22843#issuecomment-1092301293

   This appears to be the case for any falsey value.  Consider this dag:
   
   ```python3
   @dag
   def paramstuff(x, a=Param(2, minimum=0)):
       @task
       def add(literal, dagparam):
           print(literal + dagparam)
   
       add(x, a)
   
   
   # the_dag = paramstuff(0)  # one dag arg, 'add' says:
   # AirflowException: No value could be resolved for parameter x
   
   the_dag = paramstuff(3)  # two dag args, 'add' says 5
   ```
   
   I'm not sure how we should treat positional args being passed into `@dag` 
decorated functions (I'm tempted to say that they shouldn't interact with 
DagParams at all, leave that to the kwargs).  But whatever we do, it probably 
shouldn't depend on whether those values are falsey.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to