Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions py/packages/genkit/src/genkit/ai/_base_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def _initialize_registry(self, model: str | None, plugins: list[Plugin] | None)
for fmt in built_in_formats:
self.define_format(fmt)


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This additional blank line is unnecessary and results in two consecutive blank lines. According to the PEP 8 style guide, blank lines should be used sparingly to separate logical sections. Please remove this extra line.

References
  1. PEP 8 E303: too many blank lines. It recommends using blank lines sparingly within functions to indicate logical sections. Multiple consecutive blank lines are generally discouraged. (link)

if not plugins:
logger.warning('No plugins provided to Genkit')
else:
Expand Down
Loading