We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 123d20a commit 4bf17c6Copy full SHA for 4bf17c6
src/generators/generator.py
@@ -2899,8 +2899,8 @@ def _create_type_params_from_etype(self, etype: tp.Type):
2899
type_params[0].variance = tp.Invariant
2900
return type_params, {etype: type_params[0]}, True
2901
2902
- # the given type is parameterized
2903
- assert isinstance(etype, (tp.ParameterizedType, tp.WildCardType))
+ # the given type is combound
+ assert etype.is_combound() or etype.is_wildcard()
2904
type_vars = etype.get_type_variables(self.bt_factory)
2905
type_params = self.gen_type_params(
2906
len(type_vars), with_variance=self.language == 'kotlin')
0 commit comments