Return True if t and s have identical numbers of arguments, default arguments and varargs.
(t: CallableType, s: CallableType)
| 715 | |
| 716 | |
| 717 | def is_similar_callables(t: CallableType, s: CallableType) -> bool: |
| 718 | """Return True if t and s have identical numbers of |
| 719 | arguments, default arguments and varargs. |
| 720 | """ |
| 721 | return ( |
| 722 | len(t.arg_types) == len(s.arg_types) |
| 723 | and t.min_args == s.min_args |
| 724 | and t.is_var_arg == s.is_var_arg |
| 725 | ) |
| 726 | |
| 727 | |
| 728 | def is_similar_params(t: Parameters, s: Parameters) -> bool: |
no test coverage detected
searching dependent graphs…