1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import pathlib
1615import os
16+ import pathlib
1717
1818from ament_index_python import get_package_share_directory
1919from rosidl_cli .command .hash .extensions import HashCommandExtension
2020from rosidl_cli .command .helpers import (
2121 generator_arguments_file ,
2222 legacy_generator_arguments ,
23- split_idl_interface_files ,
2423 package_name_from_interface_file_path ,
24+ split_idl_interface_files ,
2525)
2626from rosidl_cli .command .translate .api import translate
2727
2828from rosidl_generator_type_description import generate_type_hash
2929
30+
3031def package_paths_from_include_paths (include_paths ):
3132 """
3233 Collect package paths, typically share paths, from include paths.
@@ -41,6 +42,7 @@ def package_paths_from_include_paths(include_paths):
4142 }
4243 )
4344
45+
4446class HashTypeDescription (HashCommandExtension ):
4547 def generate_type_hashes (
4648 self ,
@@ -74,6 +76,6 @@ def generate_type_hashes(
7476 templates_path = templates_path ,
7577 output_path = output_path ,
7678 ),
77- include_paths = include_path_tuples
79+ include_paths = include_path_tuples
7880 ) as path_to_arguments_file :
7981 return generate_type_hash (path_to_arguments_file )
0 commit comments