#4045 closed defect (fixed)

The CI typechecks job fails after the click 8.1.4 release

Reported by: exarkun Owned by: GitHub <noreply@…>
Priority: normal Milestone: undecided
Component: unknown Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

src/allmydata/cli/grid_manager.py:31:2: error: Argument 1 has incompatible type
"Callable[[Any], Any]"; expected <nothing>  [arg-type]
    @click.group()
     ^
src/allmydata/cli/grid_manager.py:74:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()
     ^~~~~~~~~~~~~~~~~~~~
src/allmydata/cli/grid_manager.py:94:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()
     ^~~~~~~~~~~~~~~~~~~~
src/allmydata/cli/grid_manager.py:106:2: error: Argument 1 has incompatible
type "Callable[[Any, Any], Any]"; expected <nothing>  [arg-type]
    @grid_manager.command()
     ^
src/allmydata/cli/grid_manager.py:106:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()
     ^~~~~~~~~~~~~~~~~~~~
src/allmydata/cli/grid_manager.py:135:2: error: Argument 1 has incompatible
type "Callable[[Any], Any]"; expected <nothing>  [arg-type]
    @grid_manager.command()
     ^
src/allmydata/cli/grid_manager.py:135:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()
     ^~~~~~~~~~~~~~~~~~~~
src/allmydata/cli/grid_manager.py:158:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()  # noqa: F811
     ^~~~~~~~~~~~~~~~~~~~
src/allmydata/cli/grid_manager.py:178:2: error: Argument 1 has incompatible
type "Callable[[Any, Any], Any]"; expected <nothing>  [arg-type]
    @grid_manager.command()
     ^
src/allmydata/cli/grid_manager.py:178:2: error: <nothing> has no attribute
"command"  [attr-defined]
    @grid_manager.command()
     ^~~~~~~~~~~~~~~~~~~~

Change History (1)

comment:1 Changed at 2023-07-12T00:05:23Z by GitHub <noreply@…>

  • Owner set to GitHub <noreply@…>
  • Resolution set to fixed
  • Status changed from new to closed

In c6daeaf/trunk:

Merge pull request #1313 from exarkun/4045.typechecks-vs-click

suppress the new click type checking errors

Also address an importlib_resources / towncrier incompatibility.

Fixes: ticket:4045

Note: See TracTickets for help on using tickets.