import importlib
import pkgutil

from commitizen.cz.conventional_commits import ConventionalCommitsCz
from commitizen.cz.customize import CustomizeCommitsCz
from commitizen.cz.jira import JiraSmartCz

registry = {
    "cz_conventional_commits": ConventionalCommitsCz,
    "cz_jira": JiraSmartCz,
    "cz_customize": CustomizeCommitsCz,
}
plugins = {
    name: importlib.import_module(name).discover_this  # type: ignore
    for finder, name, ispkg in pkgutil.iter_modules()
    if name.startswith("cz_")
}

registry.update(plugins)

@@ -25,16 +25,92 @@
 pkgutil%0A
+from typing import Dict, Type%0A%0Afrom commitizen.cz.base import BaseCommitizen
 %0Afrom co
@@ -278,16 +278,49 @@
 registry
+: Dict%5Bstr, Type%5BBaseCommitizen%5D%5D
  = %7B%0A   

add type annotation to registry