| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The example used `...` as a placeholder value for `other_recv` and then iterated over it with `async for`. pylint ignores the annotation and infers the value as `Ellipsis`, which is not iterable. pylint 4.0.8 did not catch this, but pylint 4.1 (with astroid 4.3) reports it as `not-an-iterable` (E1133), making the examples check fail. Create the receiver from a `Broadcast` channel instead, which is already imported in the example and shows how such a receiver would be created in practice. Disabling the check would also work, but it would leave a pylint suppression in user-facing documentation to hide an example that is really wrong. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
The examples check runs pylint, but `dev-pytest` only gets it indirectly through `frequenz-repo-config[extra-lint-examples]`, which accepts any `pylint >= 2.17.3, < 5`. The `pytest_min` nox session only installs `dev-pytest`, so it always gets the latest pylint, while the other sessions install `dev` and get the version pinned in `dev-pylint`. This is how pylint 4.1 broke `pytest_min` while all other checks kept passing. Pin it to the same version as `dev-pylint`, as the repo-config template does, so every session uses the same pylint and new releases only come in through Dependabot. Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
| Back | FazBrowse Home | New Git URL |
The pytest_min session has been failing on v1.x.x since pylint 4.1 was released (Sep 29), which blocks every PR in the merge queue (for example #314, and #307 to #309 before it). The examples check reports not-an-iterable (E1133) for the ActorDispatcher docstring example.
Only pytest_min broke because it installs just dev-pytest, where pylint comes in unpinned through frequenz-repo-config[extra-lint-examples], while the other sessions install dev and get the pinned pylint 4.0.8.
This fixes the example itself, so it also passes with pylint 4.1, and pins pylint in dev-pytest like the repo-config template does, so every session uses the same version.