Skip to content

Comments

Add ignore[arg-type] to fix mypy false positive#1190

Merged
agners merged 1 commit intomainfrom
ignore-typing-false-positive
Jul 8, 2025
Merged

Add ignore[arg-type] to fix mypy false positive#1190
agners merged 1 commit intomainfrom
ignore-typing-false-positive

Conversation

@agners
Copy link
Collaborator

@agners agners commented Jul 7, 2025

For unkown reasons, CI pre-commit mypy check suddenly started to fail with:

matter_server/server/server.py:92: error: Argument 1 to "append" of "MutableSequence" has incompatible type "Callable[[Application], Coroutine[Any, Any, None]]"; expected "Callable[[Callable[[Application], Awaitable[None]]], Awaitable[object]]"  [arg-type]

It seems to be a false positive. Simply ignore the line for now.

For unkown reasons, CI pre-commit mypy check suddenly started to fail
with:

```
matter_server/server/server.py:92: error: Argument 1 to "append" of "MutableSequence" has incompatible type "Callable[[Application], Coroutine[Any, Any, None]]"; expected "Callable[[Callable[[Application], Awaitable[None]]], Awaitable[object]]"  [arg-type]
```

It seems to be a false postiive. Simply ignore the line for now.
@agners agners added the ci Improvements or additions to the CI actions label Jul 7, 2025
@agners agners requested a review from marcelveldt July 7, 2025 19:17
@agners agners merged commit 17d0f8e into main Jul 8, 2025
4 checks passed
@agners agners deleted the ignore-typing-false-positive branch July 8, 2025 08:05
agners added a commit that referenced this pull request Jul 14, 2025
This reverts commit 17d0f8e.

It seems that this got resolved by aiohttp version 3.12.14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Improvements or additions to the CI actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants