Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliva Kar committed Jan 25, 2024
1 parent 2e41249 commit 8ca5675
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion azure-iot-device/azure/iot/device/common/http_transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import logging
import ssl
import requests # type: ignore
import requests # type: ignore
from . import transport_exceptions as exceptions
from .pipeline import pipeline_thread

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from . import edge_hsm
from .pipeline import MQTTPipeline, HTTPPipeline
from typing_extensions import Self
from azure.iot.device.custom_typing import FunctionOrCoroutine, JSONSerializable, Twin, TwinPatch
from azure.iot.device.custom_typing import FunctionOrCoroutine, Twin, TwinPatch
from typing import Any, Dict, List, Optional, Union

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion azure-iot-device/azure/iot/device/iothub/edge_hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import logging
import json
import base64
import requests # type: ignore
import requests # type: ignore
import requests_unixsocket
import urllib
from azure.iot.device.common.auth.signing_mechanism import SigningMechanism
Expand Down
2 changes: 1 addition & 1 deletion azure-iot-device/azure/iot/device/iothub/sync_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from azure.iot.device import constant as device_constant
from .pipeline import MQTTPipeline, HTTPPipeline
from azure.iot.device.custom_typing import FunctionOrCoroutine, StorageInfo, Twin, TwinPatch
from typing import Any, Dict, List, Optional, Set, Union
from typing import Optional, Union

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion azure-iot-device/azure/iot/device/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# This dict will be used as a scope for imports and defs in add_shims_for_inherited_methods
# in order to keep them out of the global scope of this module.
shim_scope : Dict[str, str]= {}
shim_scope : Dict[str, str] = {}


def add_shims_for_inherited_methods(target_class):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import abc
import logging
from typing_extensions import Self
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional
from azure.iot.device.provisioning import pipeline

from azure.iot.device.common.auth import sastoken as st
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
# For now, present relevant transport errors as part of the Pipeline API surface
# so that they do not have to be duplicated at this layer.
# OK TODO This mimics the IotHub Case. Both IotHub and Provisioning needs to change
from azure.iot.device.common.pipeline.pipeline_exceptions import (
from azure.iot.device.common.pipeline.pipeline_exceptions import ( # noqa: F401, F403
PipelineException,
OperationCancelled,
OperationTimeout,
OperationError,
PipelineNotRunning,
PipelineRuntimeError
) # noqa: F401, F403
)
from azure.iot.device.common.transport_exceptions import ( # noqa: F401
ConnectionFailedError,
ConnectionDroppedError,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""
from __future__ import annotations # Needed for annotation bug < 3.10
import logging
from typing import Any, Union
from typing import Any
from azure.iot.device.common.evented_callback import EventedCallback
from azure.iot.device.custom_typing import FunctionOrCoroutine
from .abstract_provisioning_device_client import AbstractProvisioningDeviceClient
Expand Down

0 comments on commit 8ca5675

Please sign in to comment.