Skip to content

lint: remove invalid type annotation in repo_load_controller#3745

Open
DhaneshKolu wants to merge 2 commits intochaoss:mainfrom
DhaneshKolu:lint/remove-invalid-directive-annotation
Open

lint: remove invalid type annotation in repo_load_controller#3745
DhaneshKolu wants to merge 2 commits intochaoss:mainfrom
DhaneshKolu:lint/remove-invalid-directive-annotation

Conversation

@DhaneshKolu
Copy link
Contributor

Removes invalid type annotation (function) that caused pylint E0602 (undefined-variable).

No functional behavior change.

Lint and tests pass locally.

…oller

Signed-off-by: Dhanesh Kolu <your-github-email@example.com>
@DhaneshKolu
Copy link
Contributor Author

@MoralCode
@shlokgilda
Addressed pylint E0602.
Could someone please take a look when convenient? Thanks!

Copy link
Collaborator

@shlokgilda shlokgilda left a comment

Choose a reason for hiding this comment

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

The intention is good but incorrect implementation.


# Find the column named in the 'order_by', and get its asc() or desc() method
directive: function = getattr(get_colum_by_label(order_by), direction.lower())
directive: getattr(get_colum_by_label(order_by), direction.lower())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove the bogus ":" from the code.

Suggested change
directive: getattr(get_colum_by_label(order_by), direction.lower())
directive = getattr(get_colum_by_label(order_by), direction.lower())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah thanks for pointing out

…oller

Signed-off-by: Dhanesh Kolu <koludhanesh5@gmail.com>
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