Skip to content

ci(mypy): Bump version to 2.4.0 - #7937

Open
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/mypy/update
Open

alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/mypy/update

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Resolve

sentry_sdk/spotlight.py:208: error: Item "None" of "Any | None" has no attribute "DEBUG"  [union-attr]
sentry_sdk/integrations/socket.py:108: error: Incompatible return value type (got "list[tuple[Literal[AddressFamily.AF_INET], SocketKind, int, str, tuple[str, int]] | tuple[Literal[AddressFamily.AF_INET6], SocketKind, int, str, tuple[str, int, int, int] | tuple[int, bytes]]]", expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]")  [return-value]
sentry_sdk/integrations/socket.py:108: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
sentry_sdk/integrations/socket.py:108: note: Consider using "Sequence" instead, which is covariant
sentry_sdk/integrations/socket.py:112: error: Incompatible return value type (got "list[tuple[Literal[AddressFamily.AF_INET], SocketKind, int, str, tuple[str, int]] | tuple[Literal[AddressFamily.AF_INET6], SocketKind, int, str, tuple[str, int, int, int] | tuple[int, bytes]]]", expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]")  [return-value]
sentry_sdk/integrations/socket.py:112: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
sentry_sdk/integrations/socket.py:112: note: Consider using "Sequence" instead, which is covariant
sentry_sdk/integrations/socket.py:136: error: Incompatible return value type (got "list[tuple[Literal[AddressFamily.AF_INET], SocketKind, int, str, tuple[str, int]] | tuple[Literal[AddressFamily.AF_INET6], SocketKind, int, str, tuple[str, int, int, int] | tuple[int, bytes]]]", expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]")  [return-value]
sentry_sdk/integrations/socket.py:136: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
sentry_sdk/integrations/socket.py:136: note: Consider using "Sequence" instead, which is covariant
sentry_sdk/integrations/socket.py:146: error: Incompatible return value type (got "list[tuple[Literal[AddressFamily.AF_INET], SocketKind, int, str, tuple[str, int]] | tuple[Literal[AddressFamily.AF_INET6], SocketKind, int, str, tuple[str, int, int, int] | tuple[int, bytes]]]", expected "list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]")  [return-value]
sentry_sdk/integrations/socket.py:146: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
sentry_sdk/integrations/socket.py:146: note: Consider using "Sequence" instead, which is covariant
sentry_sdk/integrations/socket.py:148: error: Incompatible types in assignment (expression has type "Callable[[bytes | str | None, bytes | str | int | None, int, int, int, int], list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]]", variable has type "Callable[[bytes | str | None, bytes | str | int | None, int, int, int, int], list[tuple[Literal[AddressFamily.AF_INET], SocketKind, int, str, tuple[str, int]] | tuple[Literal[AddressFamily.AF_INET6], SocketKind, int, str, tuple[str, int, int, int] | tuple[int, bytes]]]]")  [assignment]

Issues

Reminders

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 133451 passed | ⏭️ 7276 skipped | Total: 140727 | Pass Rate: 94.83% | Execution Time: 451m 0s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ No test changes detected

All tests are passing successfully.

❌ Patch coverage is 0.00%. Project has 2594 uncovered lines.
❌ Project coverage is 90.26%. Comparing base (7cb8094) to head (3fcd821).

Files with missing lines (2)
File Patch % Lines
sentry_sdk/integrations/socket.py 0.00% ⚠️ 1 Missing
sentry_sdk/spotlight.py 0.00% ⚠️ 1 Missing
Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.29%    90.26%    -0.03%
==========================================
  Files          202       202         —
  Lines        26625     26625         —
  Branches      9926      9926         —
==========================================
+ Hits         24039     24031        -8
- Misses        2586      2594        +8
- Partials      1515      1516        +1

Generated by Codecov Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review October 9, 2026 10:55
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner October 9, 2026 10:55

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants