proofit404 / stories

Service objects designed with OOP in mind.
https://proofit404.github.io/stories/
BSD 2-Clause "Simplified" License
297 stars 21 forks source link

State union should merge Argument validators. #689

Closed proofit404 closed 1 year ago

proofit404 commented 3 years ago
class A1State(State):
    v1 = Argument(is_integer)

class A2State(State):
    v1 = Argument(greater_than_7)

NewState = A1State & A2State

The v1 argument in the NewState would be both an integer and > 7.

Checks:

proofit404 commented 1 year ago

Superseded by #722