Skip to content

Commit

Permalink
run Black to fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaik03 committed Jan 7, 2024
1 parent b59deb2 commit 633972f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ofxstatement/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
from ofxstatement.ui import UI
from ofxstatement.parser import AbstractStatementParser


def get_plugin(name: str, ui: UI, settings: MutableMapping) -> "Plugin":
plugins = entry_points(name=name)
if not plugins:
if not plugins:
raise PluginNotRegistered(name)
if len(plugins) > 1:
raise PluginNameConflict(plugins)
plugin = plugins[0].load()
return plugin(ui,settings)
return plugin(ui, settings)


def list_plugins() -> List[Tuple[str, Type["Plugin"]]]:
Expand Down

0 comments on commit 633972f

Please sign in to comment.