(&mut self)
| 246 | } |
| 247 | |
| 248 | pub fn take_positional(&mut self) -> Option<PyObjectRef> { |
| 249 | if self.args.is_empty() { |
| 250 | None |
| 251 | } else { |
| 252 | Some(self.args.remove(0)) |
| 253 | } |
| 254 | } |
| 255 | |
| 256 | pub fn take_positional_keyword(&mut self, name: &str) -> Option<PyObjectRef> { |
| 257 | self.take_positional().or_else(|| self.take_keyword(name)) |
no test coverage detected