Merge remote-tracking branch 'origin/pre-commit-ci-update-config' into develop

This commit is contained in:
Timmy Welch 2024-07-30 18:35:06 -07:00
commit 893728cbef
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ repos:
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py39-plus]

View File

@ -75,7 +75,7 @@ class Plugins(NamedTuple):
tags: list[Plugin]
talkers: list[Plugin]
def all_plugins(self) -> Generator[Plugin, None, None]:
def all_plugins(self) -> Generator[Plugin]:
"""Return an iterator over all :class:`LoadedPlugin`s."""
yield from self.archivers
yield from self.tags
@ -86,7 +86,7 @@ class Plugins(NamedTuple):
return ", ".join(sorted({f"{plugin.package}: {plugin.version}" for plugin in self.all_plugins()}))
def _find_local_plugins(plugin_path: pathlib.Path) -> Generator[Plugin, None, None]:
def _find_local_plugins(plugin_path: pathlib.Path) -> Generator[Plugin]:
cfg = configparser.ConfigParser(interpolation=None)
cfg.read(plugin_path / "setup.cfg")