MCPcopy
hub / github.com/fastapi/fastapi / _frontend_match_is_more_specific

Method _frontend_match_is_more_specific

fastapi/routing.py:2810–2817  ·  view source on GitHub ↗
(
        self, child_scope: Scope, previous_child_scope: Scope
    )

Source from the content-addressed store, hash-verified

2808 return Match.NONE, {}, None, None
2809
2810 def _frontend_match_is_more_specific(
2811 self, child_scope: Scope, previous_child_scope: Scope
2812 ) -> bool:
2813 specificity = _frontend_scope_specificity(child_scope)
2814 previous_specificity = _frontend_scope_specificity(previous_child_scope)
2815 if specificity is None or previous_specificity is None:
2816 return False
2817 return specificity > previous_specificity
2818
2819 def route(
2820 self,

Callers 1

_match_low_priorityMethod · 0.95

Calls 1

Tested by

no test coverage detected