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 2c49751 commit 8729faaCopy full SHA for 8729faa
src/generators/generator.py
@@ -2394,9 +2394,12 @@ def _get_matching_objects(self,
2394
if bound is None:
2395
continue
2396
if bound.has_type_variables():
2397
- bound = tp.substitute_type(
2398
- bound, type_map_var)
2399
- if func_type_var_map.get(
+ # Substitute the bound of the function type
+ # parameter with type assignment map of the
+ # receiver class.
2400
+ bound = tp.substitute_type(bound, type_map_var)
2401
+ is_wildcard = bound.is_wildcard()
2402
+ if is_wildcard or func_type_var_map.get(
2403
t_param, bound) != bound:
2404
2405
if not bound.has_type_variables():
0 commit comments