-
-
Notifications
You must be signed in to change notification settings - Fork 2
refactor(db): make Param class private #272
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
Conversation
BREAKING CHANGE: The Param class has been renamed to _Param and is now private.
Reviewer's GuideThe public Param class was refactored into a private _Param base class, and the InParam/OutParam classes were updated to derive from _Param with exports adjusted accordingly. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `incendium/src/incendium/db.py:44` </location>
<code_context>
+ type_code: Type code constant.
+ value: Value of type type_code.
+ """
+ super(_Param, self).__init__()
+ self._name_or_index = name_or_index
+ self._type_code = type_code
</code_context>
<issue_to_address>
The call to super().__init__() may be unnecessary if object is the only base.
You can remove the super().__init__() call here, as it has no effect unless you plan to support multiple inheritance in the future.
</issue_to_address>
<suggested_fix>
<<<<<<< SEARCH
super(_Param, self).__init__()
self._name_or_index = name_or_index
self._type_code = type_code
self._value = value
=======
self._name_or_index = name_or_index
self._type_code = type_code
self._value = value
>>>>>>> REPLACE
</suggested_fix>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| super(_Param, self).__init__() | ||
| self._name_or_index = name_or_index | ||
| self._type_code = type_code | ||
| self._value = value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: The call to super().init() may be unnecessary if object is the only base.
You can remove the super().init() call here, as it has no effect unless you plan to support multiple inheritance in the future.
| super(_Param, self).__init__() | |
| self._name_or_index = name_or_index | |
| self._type_code = type_code | |
| self._value = value | |
| self._name_or_index = name_or_index | |
| self._type_code = type_code | |
| self._value = value |
stubs now also include `db._Param` from #272 Co-authored-by: lokomoti <40903296+lokomoti@users.noreply.github.com> Co-authored-by: César Román <cesar@coatl.dev>
BREAKING CHANGE: The Param class has been renamed to _Param and is now private.
Summary by Sourcery
Enhancements: