(a: str, b: str)
| 810 | return |
| 811 | |
| 812 | def names_approx_match(a: str, b: str) -> bool: |
| 813 | a = a.strip("_") |
| 814 | b = b.strip("_") |
| 815 | return a.startswith(b) or b.startswith(a) or len(a) == 1 or len(b) == 1 |
| 816 | |
| 817 | # Be more permissive about names matching for positional-only arguments |
| 818 | if runtime_arg.kind == inspect.Parameter.POSITIONAL_ONLY and names_approx_match( |
no test coverage detected
searching dependent graphs…