MCPcopy
hub / github.com/celery/celery / dedent_initial

Function dedent_initial

celery/utils/text.py:35–37  ·  view source on GitHub ↗

Remove indentation from first line of text.

(s: str, n: int = 4)

Source from the content-addressed store, hash-verified

33
34
35def dedent_initial(s: str, n: int = 4) -> str:
36 """Remove indentation from first line of text."""
37 return s[n:] if s[:n] == ' ' * n else s
38
39
40def dedent(s: str, sep: str = '\n') -> str:

Callers 1

dedentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected