Skip to content

Commit f5b1320

Browse files
authored
Merge branch 'main' into doc_link_validation
2 parents 569ed8a + c9c16e6 commit f5b1320

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ is provided by code that been generated from a model of the service.
9090

9191
This library is licensed under the [Apache 2.0 License](./documents/LICENSE).
9292

93-
Latest released version: v1.25.1
93+
Latest released version: v1.26.0

awsiot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from concurrent.futures import Future
2020
from dataclasses import dataclass
2121
import json
22-
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar
22+
from typing import Any, Callable, Dict, Generic, Optional, Tuple, TypeVar, Union
2323

2424
__version__ = '1.0.0-dev'
2525

@@ -37,7 +37,7 @@ class MqttServiceClient:
3737
mqtt_connection: MQTT connection to use
3838
"""
3939

40-
def __init__(self, mqtt_connection: mqtt.Connection or mqtt5.Client):
40+
def __init__(self, mqtt_connection: Union[mqtt.Connection, mqtt5.Client]):
4141
if isinstance(mqtt_connection, mqtt.Connection):
4242
self._mqtt_connection = mqtt_connection # type: mqtt.Connection
4343
elif isinstance(mqtt_connection, mqtt5.Client):

0 commit comments

Comments
 (0)