(context: EvaluationContext)
| 545 | |
| 546 | |
| 547 | def get_policy(context: EvaluationContext) -> EvaluationPolicy: |
| 548 | policy = copy(EVALUATION_POLICIES[context.evaluation]) |
| 549 | |
| 550 | for key, value in context.policy_overrides.items(): |
| 551 | if hasattr(policy, key): |
| 552 | setattr(policy, key, value) |
| 553 | return policy |
| 554 | |
| 555 | |
| 556 | def _validate_policy_overrides( |
no outgoing calls
no test coverage detected
searching dependent graphs…