(path: str)
| 218 | |
| 219 | @staticmethod |
| 220 | def read_file(path: str) -> Optional[str]: |
| 221 | |
| 222 | try: |
| 223 | with open(path, "r") as f: |
| 224 | return f.read().strip() |
| 225 | except (FileNotFoundError, OSError): |
| 226 | return None |
| 227 | |
| 228 | @staticmethod |
| 229 | def get_battery_path() -> Optional[str]: |
no outgoing calls
no test coverage detected