mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-05 08:51:20 +00:00
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>
This commit is contained in:
@@ -325,7 +325,9 @@ class LoadControllersDoc:
|
||||
"""Gets all controllers"""
|
||||
for trailmap, module in self._get_modules().items():
|
||||
for name, obj in getmembers(module):
|
||||
if name != "TerminalController" and "BaseController" not in name:
|
||||
if ( # noqa: SIM102
|
||||
name != "TerminalController" and "BaseController" not in name
|
||||
): # noqa: SIM102
|
||||
if isclass(obj) and issubclass(obj, BaseController):
|
||||
if trailmap not in self.controller_docs:
|
||||
ctrl = ControllerDoc(obj, trailmap)
|
||||
|
||||
Reference in New Issue
Block a user