Skip to content

Commit e2875d6

Browse files
authored
fix: Fixed type hinting issue with specifying Transport class (#930)
* Fixed type hinting issue with specifying Transport class * Switching to typing.Type for compatibility with older Python versions
1 parent 5fcdbb6 commit e2875d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google/cloud/logging_v2/handlers/handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import json
1919
import logging
2020

21-
from typing import Optional, IO
21+
from typing import Optional, IO, Type
2222

2323
from google.cloud.logging_v2.handlers.transports import (
2424
BackgroundThreadTransport,
@@ -157,7 +157,7 @@ def __init__(
157157
client,
158158
*,
159159
name: str = DEFAULT_LOGGER_NAME,
160-
transport: Transport = BackgroundThreadTransport,
160+
transport: Type[Transport] = BackgroundThreadTransport,
161161
resource: Resource = None,
162162
labels: Optional[dict] = None,
163163
stream: Optional[IO] = None,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy