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
Incorrect type hints in collection() #289
Comments
Per the implementation, the |
A correction: the leading asterisk ( |
OK, looking at PEP 484, it appears that |
PEP 484 specifies that they be hinted as the type of a single element, as seen from the caller's perspective. Closes #289.
PEP 484 specifies that they be hinted as the type of a single element, as seen from the caller's perspective. Closes #289.
PEP 484 specifies that they be hinted as the type of a single element, as seen from the caller's perspective. Closes #289. Co-authored-by: Christopher Wilcox <crwilcox@google.com>
Environment details
google-cloud-firestore
version: 2.0.2At some point recently the type hints for for
Client().collection()
methods were changed, and they do not reflect examples or the docs. I'm getting type hint warnings.python-firestore/google/cloud/firestore_v1/client.py
Line 120 in 30bb3fb
Should the type hint be changed to simply
str
? All the comments and docs show these:None of these are
Tuple[str]
. The argument*collection_path
will produce a tuple when called, but it is called with strings.The text was updated successfully, but these errors were encountered: