Skip to content

Commit

Permalink
chore: refactor after review
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Jun 24, 2024
1 parent f4e951e commit dbcd1de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions interface_tester/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __hash__(self):
return hash((self.name, self.url, self.branch))


class _CharmsDotYamlSpec(TypedDict):
class _InterfacesDotYamlSpec(TypedDict):
"""Specification of the `interface.yaml` file each interface/version dir should contain."""

providers: List[_CharmTestConfig]
Expand Down Expand Up @@ -152,8 +152,8 @@ def get_schemas(file: Path) -> Dict[Literal["requirer", "provider"], Type[DataBa
return out


def _gather_charms_for_version(version_dir: Path) -> Optional[_CharmsDotYamlSpec]:
"""Attempt to read the `interface.yaml` for this version sudir.
def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYamlSpec]:
"""Attempt to read the `interface.yaml` for this version_dir.
On failure, return None.
"""
Expand Down Expand Up @@ -196,7 +196,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_CharmsDotYamlSpec
continue
destination.append(cfg)

spec: _CharmsDotYamlSpec = {"providers": provider_configs, "requirers": requirer_configs}
spec: _InterfacesDotYamlSpec = {"providers": provider_configs, "requirers": requirer_configs}
return spec


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "pytest-interface-tester"

version = "2.0.1"
version = "3.0.0"
authors = [
{ name = "Pietro Pasotti", email = "pietro.pasotti@canonical.com" },
]
Expand Down

0 comments on commit dbcd1de

Please sign in to comment.