@@ -1951,7 +1951,7 @@ def get_types(self,
1951
1951
exclude_contravariants = False ,
1952
1952
exclude_type_vars = False ,
1953
1953
exclude_function_types = False ,
1954
- exclude_dynamic_types = False ) -> List [tp .Type ]:
1954
+ exclude_native_compound_types = False ) -> List [tp .Type ]:
1955
1955
"""Get all available types.
1956
1956
1957
1957
Including user-defined types, built-ins, and function types.
@@ -1965,7 +1965,7 @@ def get_types(self,
1965
1965
exclude_contravariants: exclude contravariant type parameters.
1966
1966
exclude_type_vars: exclude type variables.
1967
1967
exclude_function_types: exclude function types.
1968
- exclude_dynamic_types : exclude dynamic types.
1968
+ exclude_native_compound_types : exclude native compound types.
1969
1969
1970
1970
Returns:
1971
1971
A list of available types.
@@ -1995,20 +1995,20 @@ def get_types(self,
1995
1995
if t .name != self .bt_factory .get_array_type ().name
1996
1996
]
1997
1997
1998
- dynamic = (self .bt_factory .get_dynamic_types (self )
1999
- if not exclude_dynamic_types
1998
+ compound_types = (self .bt_factory .get_compound_types (self )
1999
+ if not exclude_native_compound_types
2000
2000
else [])
2001
2001
if exclude_function_types :
2002
- return usr_types + builtins + dynamic
2003
- return usr_types + builtins + dynamic + self .function_types
2002
+ return usr_types + builtins + compound_types
2003
+ return usr_types + builtins + compound_types + self .function_types
2004
2004
2005
2005
def select_type (self ,
2006
2006
ret_types = True ,
2007
2007
exclude_arrays = False ,
2008
2008
exclude_covariants = False ,
2009
2009
exclude_contravariants = False ,
2010
2010
exclude_function_types = False ,
2011
- exclude_dynamic_types = False ) -> tp .Type :
2011
+ exclude_native_compound_types = False ) -> tp .Type :
2012
2012
"""Select a type from the all available types.
2013
2013
2014
2014
It will always instantiating type constructors to parameterized types.
@@ -2020,7 +2020,7 @@ def select_type(self,
2020
2020
exclude_covariants: exclude covariant type parameters.
2021
2021
exclude_contravariants: exclude contravariant type parameters.
2022
2022
exclude_function_types: exclude function types.
2023
- eclude_dynamic_types : exclude dynamic types.
2023
+ exclude_native_compound_types : exclude native compound types.
2024
2024
2025
2025
Returns:
2026
2026
Returns a type.
@@ -2030,7 +2030,7 @@ def select_type(self,
2030
2030
exclude_covariants = exclude_covariants ,
2031
2031
exclude_contravariants = exclude_contravariants ,
2032
2032
exclude_function_types = exclude_function_types ,
2033
- exclude_dynamic_types = exclude_dynamic_types )
2033
+ exclude_native_compound_types = exclude_native_compound_types )
2034
2034
stype = ut .random .choice (types )
2035
2035
if stype .is_type_constructor ():
2036
2036
exclude_type_vars = stype .name == self .bt_factory .get_array_type ().name
@@ -2040,7 +2040,7 @@ def select_type(self,
2040
2040
exclude_contravariants = True ,
2041
2041
exclude_type_vars = exclude_type_vars ,
2042
2042
exclude_function_types = exclude_function_types ,
2043
- exclude_dynamic_types = exclude_dynamic_types ),
2043
+ exclude_native_compound_types = exclude_native_compound_types ),
2044
2044
enable_pecs = self .enable_pecs ,
2045
2045
disable_variance_functions = self .disable_variance_functions ,
2046
2046
variance_choices = {}
@@ -2899,8 +2899,8 @@ def _create_type_params_from_etype(self, etype: tp.Type):
2899
2899
type_params [0 ].variance = tp .Invariant
2900
2900
return type_params , {etype : type_params [0 ]}, True
2901
2901
2902
- # the given type is combound
2903
- assert etype .is_combound () or etype .is_wildcard ()
2902
+ # the given type is compound
2903
+ assert etype .is_compound () or etype .is_wildcard ()
2904
2904
type_vars = etype .get_type_variables (self .bt_factory )
2905
2905
type_params = self .gen_type_params (
2906
2906
len (type_vars ), with_variance = self .language == 'kotlin' )
0 commit comments