[loop-generated] [refactor] Clean up unused imports in memory_system.py #1129

Closed
opened 2026-03-23 18:24:18 +00:00 by Timmy · 1 comment
Owner

Problem

src/timmy/memory_system.py imports three symbols from its local module that are never used:

  • EMBEDDING_MODEL
  • _cosine_similarity
  • _simple_hash_embedding

Also src/dashboard/app.py has an unused _discord_check import.

Suggested Fix

Remove the unused imports. Verify they aren't re-exported (check __all__ or usage in other files).

Files

  • src/timmy/memory_system.py
  • src/dashboard/app.py

Acceptance Criteria

  • tox -e lint passes
  • tox -e unit passes
  • No runtime import errors
## Problem `src/timmy/memory_system.py` imports three symbols from its local module that are never used: - `EMBEDDING_MODEL` - `_cosine_similarity` - `_simple_hash_embedding` Also `src/dashboard/app.py` has an unused `_discord_check` import. ## Suggested Fix Remove the unused imports. Verify they aren't re-exported (check `__all__` or usage in other files). ## Files - `src/timmy/memory_system.py` - `src/dashboard/app.py` ## Acceptance Criteria - `tox -e lint` passes - `tox -e unit` passes - No runtime import errors
claude self-assigned this 2026-03-23 18:24:58 +00:00
Author
Owner

Closing — false positives. All flagged imports have # noqa: F401 annotations:

  • memory_system.py: EMBEDDING_MODEL, _cosine_similarity, _simple_hash_embedding are re-exported for backward compatibility
  • dashboard/app.py: _discord_check is an import availability probe

No cleanup needed.

Closing — false positives. All flagged imports have `# noqa: F401` annotations: - `memory_system.py`: `EMBEDDING_MODEL`, `_cosine_similarity`, `_simple_hash_embedding` are re-exported for backward compatibility - `dashboard/app.py`: `_discord_check` is an import availability probe No cleanup needed.
Timmy closed this issue 2026-03-23 18:25:21 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#1129