Standardisation 8
This commit is contained in:
@@ -78,6 +78,10 @@ def atomic_write_text(
|
||||
_atomic_write(Path(path), text.encode(encoding))
|
||||
|
||||
|
||||
def atomic_write_bytes(path: str | Path, payload: bytes) -> None:
|
||||
_atomic_write(Path(path), payload)
|
||||
|
||||
|
||||
def atomic_write_json(
|
||||
path: str | Path,
|
||||
value: JsonValue,
|
||||
|
||||
Reference in New Issue
Block a user