fweilun commented on code in PR #53647:
URL: https://github.com/apache/airflow/pull/53647#discussion_r2265905622
##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/operators/msgraph.py:
##########
@@ -247,7 +247,7 @@ def execute_complete(
@classmethod
def append_result(
cls,
- results: list[Any],
+ results: Any,
Review Comment:
```
@classmethod
def append_result(
cls,
results: list[Any],
result: Any,
append_result_as_list_if_absent: bool = False,
) -> list[Any]:
if isinstance(results, list):
if isinstance(result, list):
results.extend(result)
else:
results.append(result)
else:
if append_result_as_list_if_absent:
if isinstance(result, list):
return result
return [result]
return result
return results
```
I change the implication to silence mypy warnings.
`results` can be non-list from implementation, causing unused errors.
--
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]