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

warning: filter using positional arguments in base_collection.py #922

Open
ivica3730k opened this issue May 20, 2024 · 1 comment
Open
Assignees
Labels
api: firestore Issues related to the googleapis/python-firestore API.

Comments

@ivica3730k
Copy link

Just detected this warning while running some local unit tests

return query.where(field_path, op_string, value)

tests/test_main.py::MainTest::********
  /usr/local/lib/python3.10/site-packages/google/cloud/firestore_v1/base_collection.py:302: UserWarning: Detected filter using positional arguments. Prefer using the 'filter' keyword argument instead.
    return query.where(field_path, op_string, value)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@product-auto-label product-auto-label bot added the api: firestore Issues related to the googleapis/python-firestore API. label May 20, 2024
@ivica3730k
Copy link
Author

Running the latest 2.16 version of the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore Issues related to the googleapis/python-firestore API.
Projects
None yet
Development

No branches or pull requests

2 participants