[cloud.logging] CloudLoggingHandler: bad typing for constructor (transport's type is inferred as type[BackgroundThreadTransport]) #901
Labels
api: logging
Issues related to the googleapis/python-logging API.
VSCode's Python plugin can't understand the type of
transport
argument forCloudLoggingHandler
's constructor. It expects to see BackgroundThreadTransport class instead of base.Transport.So a call with SyncTransport is reported as an error:
Argument of type "type[SyncTransport]" cannot be assigned to parameter "transport" of type "type[BackgroundThreadTransport]" in function "init"
"type[SyncTransport]" is incompatible with "type[BackgroundThreadTransport]"
The text was updated successfully, but these errors were encountered: