The Koza documentation suggests iterating through rows in a transform by writing the code:
while (row := koza_app.get_row()) is not None:
What is the purpose of is not None here? get_row() never seems to return None, only the result of a source's reader. That return, as far as I can tell, is always Dict[str, Any] and never None. The is not None is not hurting anything, but seems unnecessary?
The Koza documentation suggests iterating through rows in a transform by writing the code:
What is the purpose of
is not None
here?get_row()
never seems to returnNone
, only the result of a source's reader. That return, as far as I can tell, is alwaysDict[str, Any]
and neverNone
. Theis not None
is not hurting anything, but seems unnecessary?