MCPcopy Create free account
hub / github.com/celery/celery / match_case

Function match_case

celery/utils/text.py:116–117  ·  view source on GitHub ↗
(s: str, other: str)

Source from the content-addressed store, hash-verified

114
115
116def match_case(s: str, other: str) -> str:
117 return s.upper() if other.isupper() else s.lower()
118
119
120def simple_format(

Callers 1

_to_keysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected