Skip to content

[ty] _typeshed.Self is not a special form#18377

Merged
carljm merged 1 commit intomainfrom
cjm/fix-self
May 30, 2025
Merged

[ty] _typeshed.Self is not a special form#18377
carljm merged 1 commit intomainfrom
cjm/fix-self

Conversation

@carljm
Copy link
Contributor

@carljm carljm commented May 29, 2025

Summary

This change was based on a mis-reading of a comment in typeshed, and a wrong assumption about what was causing a test failure in a prior PR. Reverting it doesn't cause any tests to fail.

Test Plan

Existing tests.

@carljm carljm requested a review from AlexWaygood as a code owner May 29, 2025 23:36
@carljm carljm added the ty Multi-file analysis & type inference label May 29, 2025
@carljm carljm requested review from dcreager and sharkdp as code owners May 29, 2025 23:36
@carljm carljm removed request for dcreager and sharkdp May 29, 2025 23:36
@github-actions
Copy link
Contributor

mypy_primer results

No ecosystem changes detected ✅

@carljm carljm merged commit 363f061 into main May 30, 2025
35 checks passed
@carljm carljm deleted the cjm/fix-self branch May 30, 2025 00:11
@AlexWaygood AlexWaygood added the internal An internal refactor or improvement label May 30, 2025
dcreager added a commit that referenced this pull request May 30, 2025
* main:
  [ty] support callability of bound/constrained typevars (#18389)
  [ty] Minor tweaks to "list all members" docs and tests (#18388)
  [ty] Fix broken property tests for disjointness (#18384)
  [ty] List available members for a given type (#18251)
  [`airflow`] Add unsafe fix for module moved cases (`AIR312`) (#18363)
  Add a `SourceFile` to `OldDiagnostic` (#18356)
  Update salsa past generational id change (#18362)
  [`airflow`] Add unsafe fix for module moved cases (`AIR311`) (#18366)
  [`airflow`] Add unsafe fix for module moved cases (`AIR301`) (#18367)
  [ty] Improve tests for `site-packages` discovery (#18374)
  [ty] _typeshed.Self is not a special form (#18377)
  [ty] Callable types are disjoint from non-callable `@final` nominal instance types (#18368)
  [ty] Add diagnosis for function with no return statement but with return type annotation (#18359)
  [`airflow`] Add unsafe fix module moved cases (`AIR302`) (#18093)
  Rename `ruff_linter::Diagnostic` to `OldDiagnostic` (#18355)
  [`refurb`] Add coverage of `set` and `frozenset` calls (`FURB171`) (#18035)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants