Skip to content

Comments

[red-knot] Deeper understanding of LiteralString#14649

Merged
carljm merged 6 commits intoastral-sh:mainfrom
InSyncWithFoo:rk-literalstring
Dec 3, 2024
Merged

[red-knot] Deeper understanding of LiteralString#14649
carljm merged 6 commits intoastral-sh:mainfrom
InSyncWithFoo:rk-literalstring

Conversation

@InSyncWithFoo
Copy link
Contributor

Summary

Resolves #14648.

Test Plan

Markdown tests.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 28, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! I appreciate the thorough tests, but it is possible to have too many tests :) We should make sure that each test, and each part of each test, is asserting something meaningful about the added feature. Usually added tests should fail without the code added in the PR, unless the PR is specifically about improving test coverage for existing features.

@MichaReiser MichaReiser added the ty Multi-file analysis & type inference label Nov 28, 2024
Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@carljm carljm enabled auto-merge (squash) December 3, 2024 03:29
@carljm carljm merged commit 246a6df into astral-sh:main Dec 3, 2024
dcreager added a commit that referenced this pull request Dec 3, 2024
* main:
  [`ruff`] Extend unnecessary-regular-expression to non-literal strings (`RUF055`) (#14679)
  Minor followups to RUF052 (#14755)
  [red-knot] Property tests (#14178)
  [red-knot] `is_subtype_of` fix for `KnownInstance` types (#14750)
  Improve docs for flake8-use-pathlib rules (#14741)
  [`ruff`] Implemented `used-dummy-variable` (`RUF052`) (#14611)
  [red-knot] Simplify tuples containing `Never` (#14744)
  Possible fix for flaky file watching test (#14543)
  [`flake8-import-conventions`] Improve syntax check for aliases supplied in configuration for `unconventional-import-alias (ICN001)` (#14745)
  [red-knot] Deeper understanding of `LiteralString` (#14649)
  red-knot: support narrowing for bool(E) (#14668)
  [`refurb`] Handle non-finite decimals in `verbose-decimal-constructor (FURB157)` (#14596)
  [red-knot] Re-enable linter corpus tests (#14736)
@InSyncWithFoo InSyncWithFoo deleted the rk-literalstring branch December 4, 2024 18:58
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.

[red-knot] Narrowing on s == "foo" where s is of type LiteralString

4 participants