Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve component with function #2687

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Conversation

joamatab
Copy link
Contributor

function for container and component_with_function can be none

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @joamatab - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

**kwargs,
) -> gf.Component:
"""Returns new component with a component reference.

Args:
component: to add to container.
function: function to apply to component.
kwargs: keyword arguments to pass to function.
kwargs: keyword arguments to pass to component.
Copy link
Contributor

Choose a reason for hiding this comment

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

question (code_clarification): Clarification needed on the change in the docstring regarding 'kwargs'.

The docstring change from 'pass to function' to 'pass to component' might be misleading if kwargs are still intended for the function.

@joamatab joamatab added the maintenance patch label Apr 17, 2024
@joamatab joamatab merged commit ac5fbc5 into main Apr 17, 2024
11 of 12 checks passed
@joamatab joamatab deleted the improve_component_with_function branch April 17, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant