pg_backup_and_purge: Remove unnecessary explicit types.

This commit is contained in:
Alex Vandiver 2023-04-26 00:59:20 +00:00 committed by Tim Abbott
parent e72e83793d
commit 4b35211ca1
1 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@ import subprocess
import sys
import time
from datetime import datetime, timedelta, timezone
from typing import Dict
import dateutil.parser
@ -41,7 +40,7 @@ with open("/var/lib/nagios_state/last_postgresql_backup", "w") as f:
f.write(now.isoformat())
f.write("\n")
backups: Dict[datetime, str] = {}
backups = {}
lines = subprocess.check_output(["env-wal-g", "backup-list"], text=True).split("\n")
for line in lines[1:]:
if line: