Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Apr 16, 2024
1 parent 1ccafa4 commit 3f29dc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion mqtt_ros_bridge/bridge_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from rclpy._rclpy_pybind11 import RMWError
from rclpy.node import Node
from rclpy.publisher import Publisher
from std_msgs.msg import String

from mqtt_ros_bridge.msg_typing import MsgLikeT
from mqtt_ros_bridge.serializer import ROSDefaultSerializer, Serializer
Expand Down
4 changes: 1 addition & 3 deletions mqtt_ros_bridge/util.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from importlib import import_module

from mqtt_ros_bridge.msg_typing import MsgLike


def lookup_object(object_path: str, package: str = 'mqtt_ros_bridge') -> type[MsgLike]:
def lookup_object(object_path: str, package: str = 'mqtt_ros_bridge') -> object:
""" lookup object from a some.module:object_name specification. """
module_name, obj_name = object_path.split(":")
module = import_module(module_name, package)
Expand Down

0 comments on commit 3f29dc9

Please sign in to comment.