Skip to content

Commit df5e290

Browse files
Fix type checking errors in memory-leak-monitor.py
- Remove unused imports: json, Path, Tuple - Fix type annotation for db_path parameter to use Optional[str] - Addresses pyright type-check failures in CI Co-Authored-By: Alex Peng <[email protected]>
1 parent 7c7fcfa commit df5e290

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/memory-leak-monitor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@
1010
"""
1111

1212
import argparse
13-
import json
1413
import logging
1514
import os
1615
import re
1716
import sqlite3
1817
import sys
1918
from datetime import datetime
20-
from pathlib import Path
21-
from typing import Dict, List, Optional, Tuple
19+
from typing import Dict, List, Optional
2220

2321
logger = logging.getLogger("memory-leak-monitor")
2422

@@ -36,7 +34,7 @@
3634
class MemoryLeakMonitor:
3735
"""Monitor memory usage and detect potential leaks."""
3836

39-
def __init__(self, db_path: str = None):
37+
def __init__(self, db_path: Optional[str] = None):
4038
"""
4139
Initialize memory leak monitor.
4240

0 commit comments

Comments
 (0)