MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / _try_get_workspace

Function _try_get_workspace

commitizen/providers/cargo_provider.py:102–109  ·  view source on GitHub ↗
(document: TOMLDocument)

Source from the content-addressed store, hash-verified

100
101
102def _try_get_workspace(document: TOMLDocument) -> dict:
103 try:
104 workspace = document["workspace"]
105 if TYPE_CHECKING:
106 assert isinstance(workspace, dict)
107 return workspace
108 except NonExistentKey:
109 return document

Callers 2

getMethod · 0.85
setMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected