Skip to content

2.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Sep 15:08
2.3.0
ecd5349

2.3.0 - 2026-09-04

Compare with 2.2.0

Features

  • Add option to give precedence to docstrings in stubs vs. source (09a2a13 by Timothée Mazzucotelli). Issue-447, PR-481

Bug Fixes

  • Preserve nested tuple parentheses (e095a7c by Alperen). PR-487, Co-authored-by: Timothée Mazzucotelli dev@pawamoy.fr
  • Preserve nested f-string format specs (38921b7 by Alperen). PR-486
  • Disable all docstring warnings when passing warnings=False (5cb0ae2 by Timothée Mazzucotelli).

Performance Improvements

  • Reuse computed parent in is_imported (092ac31 by Timothée Mazzucotelli).
  • Only build debug messages at debug level (8f05a4a by Timothée Mazzucotelli).
  • Avoid creating new sets when handling labels (06cd02e by Timothée Mazzucotelli).
  • Maintain map of AST node type to visitor function (e21851e by Timothée Mazzucotelli).
  • Avoid cyclic refs in ASTs to allow garbage-collecting them (b968de0 by Timothée Mazzucotelli).
  • Cache per-module path-related properties during serialization (8bd6cc4 by Timothée Mazzucotelli).
  • Do not fire load events when no extension has hooked them (0e2ae7c by Timothée Mazzucotelli).
  • Compute costly message lazily in alias resolution errors (1e391b8 by Timothée Mazzucotelli).
  • Avoid iterating many times over function parameters when merging stubs (03cae74 by Timothée Mazzucotelli).
  • Avoid iterating many times over function parameters when diff'ing (d3cf2c4 by Timothée Mazzucotelli).
  • Improve efficiency of AST parameter extraction (1e37cd4 by Timothée Mazzucotelli).
  • Cache serializable expression fields (f9e48c1 by Timothée Mazzucotelli).
  • Use maps to make JSON encoder faster (b7de96f by Timothée Mazzucotelli).
  • Avoid recomputing inherited members when diff'ing (a29e028 by Timothée Mazzucotelli).
  • Make Google, Numpy and Sphinx docstring parsers faster (7f39373 by Timothée Mazzucotelli).
  • Pre-compile patterns for docstring style detection (ad58ad5 by Timothée Mazzucotelli).
  • LRU-cache parsing of type annotations in docstrings (1671e59 by Timothée Mazzucotelli).