Skip to content

Commit

Permalink
chore: rename maintainers to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Sep 9, 2024
1 parent ba63e78 commit 97e5a6c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interface_tester/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class _InterfacesDotYamlSpec(TypedDict):

providers: List[_CharmTestConfig]
requirers: List[_CharmTestConfig]
maintainers: str
maintainer: str


class _RoleTestSpec(TypedDict):
Expand All @@ -82,7 +82,7 @@ class InterfaceTestSpec(TypedDict):

provider: _RoleTestSpec
requirer: _RoleTestSpec
maintainers: str
maintainer: str


def get_schema_from_module(module: object, name: str) -> Type[pydantic.BaseModel]:
Expand Down Expand Up @@ -175,7 +175,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml

providers = charms.get("providers") or []
requirers = charms.get("requirers") or []
maintainers = charms.get("maintainers") or ""
maintainer = charms.get("maintainer") or ""

if not isinstance(providers, list) or not isinstance(requirers, list):
raise TypeError(
Expand All @@ -202,7 +202,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml
spec: _InterfacesDotYamlSpec = {
"providers": provider_configs,
"requirers": requirer_configs,
"maintainers": maintainers,
"maintainer": maintainer,
}
return spec

Expand Down Expand Up @@ -277,7 +277,7 @@ def gather_test_spec_for_version(
"schema": schemas.get("requirer"),
"charms": charms.get("requirers", []) if charms else [],
},
"maintainers": charms.get("maintainers") or "" if charms else "",
"maintainer": charms.get("maintainer") or "" if charms else "",
}


Expand Down

0 comments on commit 97e5a6c

Please sign in to comment.