Validate that `item` is `path-like`. Parameters ---------- item : object The thing to be checked. Returns ------- bool ``True`` if `item` is a `path-like` object; ``False`` otherwise.
(item)
| 680 | |
| 681 | |
| 682 | def _path_like(item): |
| 683 | """Validate that `item` is `path-like`. |
| 684 | |
| 685 | Parameters |
| 686 | ---------- |
| 687 | item : object |
| 688 | The thing to be checked. |
| 689 | |
| 690 | Returns |
| 691 | ------- |
| 692 | bool |
| 693 | ``True`` if `item` is a `path-like` object; ``False`` otherwise. |
| 694 | """ |
| 695 | try: |
| 696 | _validate_type(item, types="path-like") |
| 697 | return True |
| 698 | except TypeError: |
| 699 | return False |
| 700 | |
| 701 | |
| 702 | def _check_if_nan(data, msg=" to be plotted"): |