Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Argument of type "type[SyncTransport]" cannot be assigned to parameter "transport" of type "Transport" in function "__init__" #929

Copy link
Copy link
Closed
@AdeelK93

Description

@AdeelK93
Issue body actions

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

If you are still having issues, please be sure to include as much information as possible:

Environment details

  • OS type and version:
  • Python version: python --version 3.12.4
  • pip version: pip --version 24.1.2
  • google-cloud-logging version: pip show google-cloud-logging 3.11.0
  • pyright version: 1.1.374

Steps to reproduce

Same as #901 - but, now there's a type error even if you don't provide a Transport in 3.11. Previously, omitting the argument wouldn't yield a type error.

Code example

import google.cloud.logging
from google.cloud.logging.handlers import CloudLoggingHandler
from google.cloud.logging.handlers.transports import SyncTransport

client = google.cloud.logging.Client()
handler = CloudLoggingHandler(client, name="LOGGER_NAME", transport=SyncTransport)

Stack trace

image

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: loggingIssues related to the googleapis/python-logging API.Issues related to the googleapis/python-logging API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.