Skip to content

target model v2 - #1293

Draft
richrines1 wants to merge 9 commits into
mainfrom
rich/target-model-v2
Draft

target model v2#1293
richrines1 wants to merge 9 commits into
mainfrom
rich/target-model-v2

Conversation

@richrines1

@richrines1 richrines1 commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

more compact replacement for TargetModel

also renamed the new model TargetDescription, but open to other suggestions :)

@cdbf1

cdbf1 commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

I'm very much in favour of switching to using statuses rather than all the booleans!

@richrines1 richrines1 changed the title [for discussion] target model v2 target model v2 Nov 19, 2025
@richrines1
richrines1 marked this pull request as ready for review November 19, 2025 22:29
@dowusu-antwi
dowusu-antwi self-requested a review November 26, 2025 16:34
QUBO = "qubo"


class TargetDescription(DefaultPydanticModel):

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.

How about TargetSpecification / TargetSpecs?

@pgoiporia pgoiporia 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.

LGTM. One suggestion but you can probably ignore it.

accessible=True,
)

with pytest.raises(pydantic.ValidationError, match=r"valid string format"):

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.

Maybe this is overkill, given that we hit full coverage, but should we be adding the same test for status?

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.

4 participants