From 4399766500542074600721693015367320395719 Mon Sep 17 00:00:00 2001 From: nullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com> Date: Sun, 15 Feb 2026 19:28:34 +1100 Subject: fix[python]: covariant user lists --- python/binaryview.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/binaryview.py') diff --git a/python/binaryview.py b/python/binaryview.py index 2dc3c05c..4b8fedbd 100644 --- a/python/binaryview.py +++ b/python/binaryview.py @@ -30,7 +30,7 @@ import pprint import inspect import os import uuid -from typing import Callable, Generator, Optional, Union, Tuple, List, Mapping, Any, \ +from typing import Callable, Generator, Optional, Union, Tuple, List, Sequence, Mapping, Any, \ Iterator, Iterable, KeysView, ItemsView, ValuesView, Dict, overload from dataclasses import dataclass from enum import IntFlag @@ -8561,7 +8561,7 @@ class BinaryView: type_obj = type_obj.immutable_copy() core.BNDefineUserAnalysisType(self.handle, _name, type_obj.handle) - def define_types(self, types: List[Tuple[str, Optional['_types.QualifiedNameType'], StringOrType]], progress_func: Optional[ProgressFuncType]) -> Mapping[str, '_types.QualifiedName']: + def define_types(self, types: Sequence[Tuple[str, Optional['_types.QualifiedNameType'], StringOrType]], progress_func: Optional[ProgressFuncType]) -> Mapping[str, '_types.QualifiedName']: """ ``define_types`` registers multiple types as though calling :py:func:`define_type` multiple times. The difference with this plural version is that it is optimized for adding many types @@ -8613,7 +8613,7 @@ class BinaryView: core.BNFreeStringList(result_ids, result_count) core.BNFreeTypeNameList(result_names, result_count) - def define_user_types(self, types: List[Tuple[Optional['_types.QualifiedNameType'], StringOrType]], progress_func: Optional[ProgressFuncType]): + def define_user_types(self, types: Sequence[Tuple[Optional['_types.QualifiedNameType'], StringOrType]], progress_func: Optional[ProgressFuncType]): """ ``define_user_types`` registers multiple types as though calling :py:func:`define_user_type` multiple times. The difference with this plural version is that it is optimized for adding many types -- cgit v1.3.1