Skip to content

chore: Fix typing annotation in ddss.py. - #111

Merged
hzhangxyz merged 1 commit into
mainfrom
dev/fix-typing
Mar 16, 2026
Merged

chore: Fix typing annotation in ddss.py.#111
hzhangxyz merged 1 commit into
mainfrom
dev/fix-typing

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 16, 2026 03:58
@hzhangxyz
hzhangxyz merged commit eb67bf7 into main Mar 16, 2026
28 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on small readability and typing improvements across the DDSS Python components (CLI wiring, ORM insert helpers, and e-graph utilities).

Changes:

  • Renames loop variables in egg/output to clearer names (idea, fact).
  • Adds/adjusts type annotations in the CLI (component_map, coroutine list) and prompt input.
  • Makes return values explicit (return None) and adds an explicit __init__ return type in the e-graph module.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
ddss/output.py Readability-only variable renames in DB polling loop.
ddss/orm.py Adds dialect-specific Insert type annotations for insert-or-ignore statements.
ddss/main.py Refines component map typing and annotates coroutine list creation.
ddss/input.py Adds an explicit type annotation for the PromptSession instance.
ddss/egraph.py Makes None returns explicit and annotates _EGraph.__init__.
ddss/egg.py Readability-only variable renames in DB polling loop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread ddss/egraph.py
if not isinstance(term, List):
return
return None
if not (len(term) == 4 or str(term[0]) == "binary" or str(term[1]) == "=="):
Comment thread ddss/main.py
from .chain import main as chain

component_map: dict[str, callable[[async_sessionmaker[AsyncSession]], Awaitable[None]]] = {
component_map: dict[str, Callable[[async_sessionmaker[AsyncSession]], Coroutine[None, None, None]]] = {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants