Skip to content

Refactor library interface#16

Merged
russss merged 3 commits into
mainfrom
interface-refactor
May 16, 2026
Merged

Refactor library interface#16
russss merged 3 commits into
mainfrom
interface-refactor

Conversation

@russss

@russss russss commented May 3, 2026

Copy link
Copy Markdown
Member

This draws a clean boundary between the external interface, which operates in datetimes, and the solver, which operates in slots. It improves type checking and makes writing tests a lot more straightforward.

Fixes #7

@russss russss requested a review from Jonty May 3, 2026 13:16
Comment thread tests/test_slotmachine.py Outdated
Comment thread tests/test_slotmachine.py
@Jonty

Jonty commented May 16, 2026

Copy link
Copy Markdown
Member

Spotted two issues in the tests that need resolving, but other than that LGTM. Some of this is way better!

@russss russss force-pushed the interface-refactor branch from 2538c48 to b933a7e Compare May 16, 2026 15:03
@russss

russss commented May 16, 2026

Copy link
Copy Markdown
Member Author

Both of those should be sorted now. Also added a few more tests and removed the unittest dependency.

This draws a clean boundary between the external interface, which
operates in datetimes, and the solver, which operates in slots. It
improves type checking and makes writing tests a lot more
straightforward.

Fixes #7
@russss russss force-pushed the interface-refactor branch from b933a7e to 07eb723 Compare May 16, 2026 15:15
@russss russss force-pushed the interface-refactor branch from 2523558 to 2580135 Compare May 16, 2026 15:58

@Jonty Jonty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@russss russss merged commit d8d5d02 into main May 16, 2026
2 checks passed
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.

Improve external API

2 participants