Skip to content

Conversation

@CurroRodriguez
Copy link
Contributor

Summary

Changed Task.call method signature from accepting config as an optional keyword argument to requiring it as a positional parameter. This makes the config parameter mandatory and more explicit, improving the API design and preventing potential issues from missing config.

  • Change signature from call(self, **kwargs) to call(self, config, **kwargs)
  • Replace kwargs.get("config") with direct assignment of config parameter

Changed Task.__call__ method signature from accepting config as an optional keyword argument to requiring it as a
positional parameter. This makes the config parameter mandatory and more explicit, improving the API design and
preventing potential issues from missing config.

- Change signature from __call__(self, **kwargs) to __call__(self, config, **kwargs)
- Replace kwargs.get("config") with direct assignment of config parameter
@github-actions
Copy link

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 86%
src.bolt.utils 81%
Summary 87% (647 / 742)

Minimum allowed line rate is 75%

1 similar comment
@github-actions
Copy link

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 86%
src.bolt.utils 81%
Summary 87% (647 / 742)

Minimum allowed line rate is 75%

@github-actions
Copy link

Code Coverage

Package Line Rate Health
src.bolt 89%
src.bolt.tasks 87%
src.bolt.utils 81%
Summary 87% (647 / 741)

Minimum allowed line rate is 75%

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the Task.__call__ method signature to require config as a mandatory positional parameter instead of accepting it as an optional keyword argument. This aims to make the config parameter more explicit and prevent issues from missing config values.

Key changes:

  • Modified Task.__call__ signature from __call__(self, **kwargs) to __call__(self, config, **kwargs)
  • Changed config retrieval from kwargs.get("config") to direct assignment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@CurroRodriguez CurroRodriguez merged commit b73ea16 into master Nov 15, 2025
11 checks passed
@CurroRodriguez CurroRodriguez deleted the fix-task-kwargs branch November 15, 2025 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants