You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 2, 2026. It is now read-only.
Using strict type check linting in my IDE throws errors when calling the get method on an AsyncDocumentReference type. This comes from the above code, in which transaction is set to None without explicitly declaring its type. This seems like an easy fix, even if that is as simple as transaction: Any | None = None, although probably not recommended. This is not the only place using the google cloud python sdk. In fact anytime I'm calling a method on an AsyncDocumentRerference, or AysncCollectionReference, I find myself needing a # type: ignore following it just to get rid of my linter yelling at me.
It would be nice to have more explicit complete typing on these methods, so I'm bringing it up in an issue and see where it goes. Below is a screenshot of the error that I get for this specific instance, but can be extrapolated to any method/function that is not being strict in their param type definitions.