MCPcopy
hub / github.com/celery/celery / str_to_list

Function str_to_list

celery/utils/text.py:28–32  ·  view source on GitHub ↗

Convert string to list.

(s: str)

Source from the content-addressed store, hash-verified

26
27
28def str_to_list(s: str) -> list[str]:
29 """Convert string to list."""
30 if isinstance(s, str):
31 return s.split(',')
32 return s
33
34
35def dedent_initial(s: str, n: int = 4) -> str:

Callers 3

__init__Method · 0.90
setup_instanceMethod · 0.90
setup_queuesMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected