Skip to content

chore(deps-dev): bump pyrefly from 1.4.1 to 1.5.0 - #270

Merged
github-actions[bot] merged 1 commit into
developfrom
dependabot/uv/develop/pyrefly-1.5.0
Nov 24, 2026
Merged

github-actions[bot] merged 1 commit into
developfrom
dependabot/uv/develop/pyrefly-1.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Bumps pyrefly from 1.4.1 to 1.5.0.

Release notes

Sourced from pyrefly's releases.

Pyrefly v1.5.0

Release date: November 18, 2026

Pyrefly v1.5.0 bundles 1466 commits from 81 contributors.


🔍 Release Highlights

  • 100% typing spec conformance. Pyrefly now passes all 146 test files in the typing conformance suite. Some of these fixes change how names in annotations resolve; see Behavior Changes below.
  • Faster checks. v1.5.0 checks 40% faster than v1.4.1 and uses 9% less memory across the 71 benchmarks in Astral's ty_benchmark and the python-type-checking benchmark suites. (Tested on an M5 Max MacBook Pro with 18 threads.)
  • A new hint severity. Diagnostics that were previously IDE-only are now regular error kinds at a new hint severity: unused-import, unused-parameter, unused-variable, unreachable, and inactive-code (formerly unreachable-code). By default, they appear in your editor and are hidden from pyrefly check output, but you can configure them in pyrefly.toml, silence them with suppression comments, or promote them to errors like any other error kind.

⚠️ Behavior Changes

These may surface new output or errors in code that checked cleanly under v1.4.1.

  • pyrefly check prints warnings by default. This includes uses of deprecated APIs, redundant-cast, and unnecessary-type-conversion. Warnings don't affect the exit code, and --suppress-errors, baseline updates, and JUnit reports ignore them. To hide them, set min-severity = "error" in your config or pass --min-severity=error.
  • Type annotations look up names in the enclosing class body first.
    • Postponed annotations, which include string annotations, annotations under from __future__ import annotations, and annotations in stub files, look names up in the class body first. So if a class defines a method named int, x: int in that class refers to the method - even if the method is defined after x.
    • Pyrefly now reports uninitialized names in every eagerly evaluated annotation, and illegal circular references in annotations.
  • pyrefly check <dir> honors config excludes. A directory argument now uses the config found from that directory and honors its project-excludes, so excluded files are no longer checked and pyrefly check . checks the same files as pyrefly check. Glob arguments are expanded as a shell would, so quoted and unquoted globs give the same result.
  • unreachable defaults to hint instead of warn. Unreachable code defaults to an IDE-only hint. Set unreachable to "warn" or "error" to keep it visible on the command line.
  • Unused-code hints follow the normal error pipeline. Because unused-import, unused-parameter, and unused-variable are now error kinds, disable-type-errors-in-ide, project includes, and generated-code filtering hide them, and they appear in notebook cells.

✨ New & Improved

Type Checking

  • Narrowing is more precise on the result of and and or operations, type(x) is C comparisons, and tuple elements guarded by any(...) or all(...).
  • Exhaustiveness checking for match statements is more accurate, especially for tuple subjects and class patterns.
  • Pyrefly catches more reads of names that may be uninitialized, such as a name assigned in a loop that may break.
  • ParamSpec and TypeVarTuple accept variance keywords and respect declared variance.
  • Methods without a positional self or cls parameter are reported as bad-function-definition.
  • A new unexpected-never warning reports functions that can never return but aren't annotated NoReturn or Never.
  • A new fallback-search-path-relative-import warning reports imports that resolve only through the fallback search path heuristic and may fail at runtime, which usually means a search path or site package path is missing from your config.
  • The new opt-in error kinds explicit-any-use and partially-unknown-type show where explicit Any and partially unknown types flow through your code.
  • The new opt-in protected-access error kind reports access to single-underscore members from outside their class, and is what Pyright's reportPrivateUsage now maps to.
  • The new opt-in invalid-format-spec error kind checks f-string format specifications against the value's type and the builtin formatting rules.
  • Files whose names aren't Python identifiers, such as Django's 0001_initial.py migrations, now get module names.
  • The new opt-in infer-param-types-from-docstring option uses types from Sphinx (reStructuredText) :param <type> <name>: and :type <name>: fields for unannotated parameters, which helps with older libraries that document types instead of annotating them.

Library Support

  • Pydantic model_validate and model_construct calls are type checked.
  • Pydantic constructor checks follow lax-mode coercion more closely, reducing false positives for enums, named tuples, NewTypes, and fields with custom schemas.

... (truncated)

Commits
  • cc13b5d cut 1.5.0
  • 4609396 Identify calculations by their exact module key instead of Arc\<Answers>
  • b2661de Warn when the project environment has a different Pyrefly version installed
  • 6df5707 Expect the moved generic class tests to match a clean check
  • cb57ac6 Preload the bundled stdlib while check starts up
  • 99226bb Correct the documented relation between Equal and == in the total-order test
  • 3cc2e05 Identify type parameters by their definitions, not their source positions
  • 1c85364 Give batch norm modules the _BatchNorm base in v1 and trunk
  • 8a6e332 Test the _BatchNorm base class in v1 and trunk
  • 7432340 Infer module values for ModuleDict mappings in v1 and trunk
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pyrefly](https://github.com/pyrefly-org/pyrefly) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/pyrefly-org/pyrefly/releases)
- [Commits](pyrefly-org/pyrefly@1.4.1...1.5.0)

---
updated-dependencies:
- dependency-name: pyrefly
  dependency-version: 1.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 24, 2026
@github-actions
github-actions Bot enabled auto-merge November 24, 2026 06:45
@github-actions
github-actions Bot merged commit 6f0ca2d into develop Nov 24, 2026
3 checks passed
@dependabot
dependabot Bot deleted the dependabot/uv/develop/pyrefly-1.5.0 branch November 24, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants