Files
OpenBB/tests/test_helpers.py
Colin Delahunty cebf454cdf Added flake8-simplify (#4227)
* Added flake8-simplify

* Update linting.yml

* update.  left 1 for you colin

* Fix that one

* Missed

* Fix

* mypy

---------

Co-authored-by: james <jmaslek11@gmail.com>
2023-02-20 19:27:34 -05:00

10 lines
301 B
Python

import pandas as pd
def no_dfs(args: list, kwargs: dict) -> bool:
"""Returns false if there are in dataframe objects given"""
for item in args:
if isinstance(item, pd.DataFrame):
return False
return all(not isinstance(item, pd.DataFrame) for item in kwargs.values())