False positive if parameter is zipped dictionary
Opened this issue · 0 comments
ericwb commented
Describe the bug
For some rules that check kwargs, if a zipped dict is passed as the argument, the rule fails to understand this.
For example:
SMTP(**smtp_kwargs)
To Reproduce
Steps to reproduce the behavior:
- Create an example where the argument is a zipped dict
- Run rule particular to that example
Expected behavior
Rules that check kwargs should not result in false positives or false negatives.
Version
precli 0.4.3.dev6
python version = 3.12.1 (main, Dec 12 2023, 13:19:17) [Clang 15.0.0 (clang-1500.0.40.1)]
Additional context
https://github.com/apache/airflow/blob/main/airflow/providers/smtp/hooks/smtp.py#L135