MCPcopy Create free account
hub / github.com/dagger/dagger / to_pascal_case

Function to_pascal_case

sdk/python/src/dagger/mod/_utils.py:49–51  ·  view source on GitHub ↗

Convert a string to PascalCase.

(s: str)

Source from the content-addressed store, hash-verified

47
48
49def to_pascal_case(s: str) -> str:
50 """Convert a string to PascalCase."""
51 return snake_to_camel(s.replace("-", "_"))
52
53
54def to_camel_case(s: str) -> str:

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected