(tp: ProperType, allow_tuple: bool = False)
| 381 | |
| 382 | |
| 383 | def is_trivial_bound(tp: ProperType, allow_tuple: bool = False) -> bool: |
| 384 | if isinstance(tp, Instance) and tp.type.fullname == "builtins.tuple": |
| 385 | return allow_tuple and is_trivial_bound(get_proper_type(tp.args[0])) |
| 386 | return isinstance(tp, Instance) and tp.type.fullname == "builtins.object" |
| 387 | |
| 388 | |
| 389 | def find_linear(c: Constraint) -> tuple[bool, TypeVarId | None]: |
no test coverage detected
searching dependent graphs…