Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
116
def
match_case(s: str, other: str) -> str:
117
return
s.upper()
if
other.isupper()
else
s.lower()
118
119
120
def
simple_format(
Callers
1
_to_keys
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected