Skip to content

lint: remove invalid type annotation in repo_load_controller#3745

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

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

Conversation

@DhaneshKolu
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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>
@DhaneshKolu
Copy link
Copy Markdown
Contributor Author

@MoralCode
@shlokgilda
Could someone please take a look when convenient? Thanks!

Copy link
Copy Markdown
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.

LGTM

@DhaneshKolu
Copy link
Copy Markdown
Contributor Author

@MoralCode
Could you have a look when you have free time.

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