-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: evaluator module #192
Conversation
khvn26
commented
Sep 14, 2023
- Move segment rule evaluators to flag_engine.segments.evaluator module
- Add missing runtime type checks
- Move segment rule evaluators to flag_engine.segments.evaluator module - Add missing runtime type checks
Minimum allowed coverage is Generated by 🐒 cobertura-action against 1d2b802 |
from pydantic import BaseModel, Field | ||
|
||
from flag_engine.features.models import FeatureStateModel | ||
from flag_engine.segments import constants | ||
from flag_engine.segments.types import ConditionOperator, RuleType | ||
from flag_engine.utils.semver import is_semver | ||
from flag_engine.utils.types import get_casting_function | ||
|
||
|
||
class SegmentConditionModel(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_EXCEPTION_OPERATOR_METHODS
can be removed now, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff