Skip to content

Commit 65846f4

Browse files
refactor: remove duplicate threading import in _is_interpreter_shutting_down method
- Remove redundant ''import threading'' since threading is already imported at module level - Addresses reviewer feedback on code duplication - Maintains all functionality while improving code cleanliness Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>
1 parent 36160c7 commit 65846f4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/praisonai-agents/praisonaiagents/telemetry/telemetry.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,6 @@ def _is_interpreter_shutting_down(self) -> bool:
419419
"""
420420
try:
421421
import sys
422-
import threading
423422

424423
# Check if the interpreter is in shutdown mode
425424
if hasattr(sys, 'is_finalizing') and sys.is_finalizing():

0 commit comments

Comments
 (0)