Check whether a specific virtrual path has a binding. Args: vpath: virtual path name to check Returns: `True` if the specified virtual path has been bound, `False` otherwise.
(self, vpath: str)
| 74 | return absvpath in self._mapping |
| 75 | |
| 76 | def has_mapping(self, vpath: str) -> bool: |
| 77 | """Check whether a specific virtrual path has a binding. |
| 78 | |
| 79 | Args: |
| 80 | vpath: virtual path name to check |
| 81 | |
| 82 | Returns: `True` if the specified virtual path has been bound, `False` otherwise. |
| 83 | """ |
| 84 | |
| 85 | return vpath in self |
| 86 | |
| 87 | def __len__(self) -> int: |
| 88 | return len(self._mapping) |
no outgoing calls
no test coverage detected