If some keys in the property cycle (excluding those in the set *ignore*) are absent or set to None in the dict *kw*, return a copy of the next entry in the property cycle, excluding keys in *ignore*. Otherwise, don't advance the property cycle, and return an empty di
(self, kw, ignore=frozenset())
| 223 | return "k" |
| 224 | |
| 225 | def getdefaults(self, kw, ignore=frozenset()): |
| 226 | """ |
| 227 | If some keys in the property cycle (excluding those in the set |
| 228 | *ignore*) are absent or set to None in the dict *kw*, return a copy |
| 229 | of the next entry in the property cycle, excluding keys in *ignore*. |
| 230 | Otherwise, don't advance the property cycle, and return an empty dict. |
| 231 | """ |
| 232 | defaults = self._cycler_items[self._idx] |
| 233 | if any(kw.get(k, None) is None for k in {*defaults} - ignore): |
| 234 | self._idx = (self._idx + 1) % len(self._cycler_items) # Advance cycler. |
| 235 | # Return a new dict to avoid exposing _cycler_items entries to mutation. |
| 236 | return {k: v for k, v in defaults.items() if k not in ignore} |
| 237 | else: |
| 238 | return {} |
| 239 | |
| 240 | |
| 241 | class _process_plot_var_args: |
no test coverage detected