MCPcopy
hub / github.com/pallets/werkzeug / _value_matches

Method _value_matches

src/werkzeug/datastructures/accept.py:67–69  ·  view source on GitHub ↗

Check if a value matches a given accept item.

(self, value: str, item: str)

Source from the content-addressed store, hash-verified

65 return (value != "*",)
66
67 def _value_matches(self, value: str, item: str) -> bool:
68 """Check if a value matches a given accept item."""
69 return item == "*" or item.lower() == value.lower()
70
71 @t.overload
72 def __getitem__(self, key: str) -> float: ...

Callers 4

qualityMethod · 0.95
__contains__Method · 0.95
indexMethod · 0.95
_best_single_matchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected