INFERRED confidence for a dispatch edge, given how many implementers exist. One implementer is forced — "strong inference". Three or more floors at "weak inference" instead of continuing to fall per extra implementer.
(implementer_count: int)
| 52 | |
| 53 | |
| 54 | def _dispatch_confidence(implementer_count: int) -> float: |
| 55 | """INFERRED confidence for a dispatch edge, given how many implementers exist. |
| 56 | |
| 57 | One implementer is forced — "strong inference". Three or more floors at |
| 58 | "weak inference" instead of continuing to fall per extra implementer. |
| 59 | """ |
| 60 | return _DISPATCH_CONFIDENCE_BY_IMPLEMENTER_COUNT.get(implementer_count, _DISPATCH_CONFIDENCE_FLOOR) |
| 61 | |
| 62 | |
| 63 | def declared_in(node: dict | None, suffixes: tuple[str, ...]) -> bool: |
no test coverage detected