Skip to content

Comments

[red-knot] MDTests: Do not depend on precise public-symbol type inference#15691

Merged
sharkdp merged 1 commit intomainfrom
david/mdtests-less-dependence-on-public-symbol-inference-specifics
Jan 23, 2025
Merged

[red-knot] MDTests: Do not depend on precise public-symbol type inference#15691
sharkdp merged 1 commit intomainfrom
david/mdtests-less-dependence-on-public-symbol-inference-specifics

Conversation

@sharkdp
Copy link
Contributor

@sharkdp sharkdp commented Jan 23, 2025

Summary

Another small PR to focus #15674 solely on the relevant changes. This makes our Markdown tests less dependent on precise types of public symbols, without actually changing anything semantically in these tests.

Best reviewed using ignore-whitespace-mode.

Test Plan

Tested these changes on main and on the branch from #15674.

@sharkdp sharkdp added the ty Multi-file analysis & type inference label Jan 23, 2025
@sharkdp sharkdp enabled auto-merge (squash) January 23, 2025 13:51
@sharkdp sharkdp merged commit 15394a8 into main Jan 23, 2025
20 checks passed
@sharkdp sharkdp deleted the david/mdtests-less-dependence-on-public-symbol-inference-specifics branch January 23, 2025 13:51
dcreager added a commit that referenced this pull request Jan 24, 2025
* main:
  [red-knot] MDTests: Do not depend on precise public-symbol type inference (#15691)
  [red-knot] Make `infer.rs` unit tests independent of public symbol inference (#15690)
  Tidy knot CLI tests (#15685)
  [red-knot] Port comprehension tests to Markdown (#15688)
  Create Unknown rule diagnostics with a source range (#15648)
  [red-knot] Port 'deferred annotations' unit tests to Markdown (#15686)
  [red-knot] Support custom typeshed Markdown tests (#15683)
  Don't run the linter ecosystem check on PRs that only touch red-knot crates (#15687)
  Add `rules` table to configuration (#15645)
  [red-knot] Make `Diagnostic::file` optional (#15640)
  [red-knot] Add test for nested attribute access (#15684)
  [red-knot] Anchor relative paths in configurations (#15634)
  [`pyupgrade`] Handle multiple base classes for PEP 695 generics (`UP046`) (#15659)
  [`pyflakes`] Treat arguments passed to the `default=` parameter of `TypeVar` as type expressions (`F821`) (#15679)
  Upgrade zizmor to the latest version in CI (#15649)
  [`pyupgrade`] Add rules to use PEP 695 generics in classes and functions (`UP046`, `UP047`) (#15565)
  [red-knot] Ensure a gradual type can always be assigned to itself (#15675)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants