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

Function __getattr__

commitizen/changelog_formats/__init__.py:101–110  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

99
100
101def __getattr__(name: str) -> Callable[[str], type[ChangelogFormat] | None]:
102 if name == "guess_changelog_format":
103 warnings.warn(
104 "guess_changelog_format is deprecated and will be removed in v5. "
105 "Use _guess_changelog_format instead.",
106 DeprecationWarning,
107 stacklevel=2,
108 )
109 return _guess_changelog_format
110 raise AttributeError(f"module {__name__} has no attribute {name}")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected