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

Add SQLAlchemy model definition class to complete the implementation #4

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amotl
Copy link
Contributor

@amotl amotl commented Nov 24, 2022

About

The code works without issues, tests succeed.

However, when adding a SQLAlchemy model definition class, in order to complete the implementation, CodeQL will raise a notice that the code would sport an unused variable. The corresponding rule is py/unused-local-variable.

Thoughts

While CodeQL is right, the code is also right. Is there a way to annotate such code that CodeQL will accept it without further ado?

References

@@ -35,6 +36,10 @@

@patch("crate.client.connection.Cursor", FakeCursor)
def test_table_with_object_array(db):
class DummyTable(db.Base):

Check notice

Code scanning / CodeQL

Unused local variable

Variable DummyTable is not used.
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.

1 participant