fix api comment
This commit is contained in:
parent
44b22472e3
commit
b84496a4d9
|
@ -230,16 +230,16 @@ impl PyAny {
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calls the object with only positional arguments.
|
/// Calls the object without arguments.
|
||||||
///
|
///
|
||||||
/// This is equivalent to the Python expression `self(*args)`.
|
/// This is equivalent to the Python expression `self()`.
|
||||||
pub fn call0(&self) -> PyResult<&PyAny> {
|
pub fn call0(&self) -> PyResult<&PyAny> {
|
||||||
self.call((), None)
|
self.call((), None)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Calls the object without arguments.
|
/// Calls the object with only positional arguments.
|
||||||
///
|
///
|
||||||
/// This is equivalent to the Python expression `self()`.
|
/// This is equivalent to the Python expression `self(*args)`.
|
||||||
pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> PyResult<&PyAny> {
|
pub fn call1(&self, args: impl IntoPy<Py<PyTuple>>) -> PyResult<&PyAny> {
|
||||||
self.call(args, None)
|
self.call(args, None)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue