Remove FunctionSignature

This commit is contained in:
Aleksey Kladov 2020-07-16 22:05:43 +02:00
parent a5ae8b8b92
commit 3823c2dc19
4 changed files with 8 additions and 181 deletions

View file

@ -1553,7 +1553,7 @@ impl Callable {
param_list.self_param()
}
pub fn n_params(&self) -> usize {
self.sig.params().len()
self.sig.params().len() - if self.is_bound_method { 1 } else { 0 }
}
pub fn params(
&self,