Closed dimaqq closed 6 months ago
sorry, I really prefer ensuring correctness at the type level if possible, so I'm going to close this.
No problem. Consider including the missed logical branch from the comment above.
sorry, I really prefer ensuring correctness at the type level if possible, so I'm going to close this.
I was going to suggest a type guard, but that would require py 3.10 ¯\_(ツ)_/¯ https://devguide.python.org/versions/
Just a thought: another option would be to override AndCondition and OrCondition constructors to ensure the contents is of the correct length.
@ojii here