Skip to content

Commit f17b64c

Browse files
dgunningclaude
andauthored
chore(release): 6.4.0 (#2064)
Bump the version to 6.4.0 in edgar/__about__.py and in all three server.json strings, and fold the 23 changelog.d fragments into a dated [6.4.0] section. Start docs/upgrade/6.5.md, link it from the 6.4 guide and the mkdocs nav, and point the upgrade-guide gate (scripts/check_upgrade_guide.py), AGENTS.md, the PR template and the workflow comment at it. test-fast green: 52527 passed, 9 skipped. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent df41d69 commit f17b64c

33 files changed

Lines changed: 58 additions & 32 deletions

‎.github/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Fixes #
1717

1818
## 6.0
1919

20-
- [ ] This PR adds a deprecation, a 6.0 warning, or a "removed in 6.0" note, and the current upgrade guide, `docs/upgrade/6.4.md`, says what users see now and what to do instead
20+
- [ ] This PR adds a deprecation, a 6.0 warning, or a "removed in 6.0" note, and the current upgrade guide, `docs/upgrade/6.5.md`, says what users see now and what to do instead
2121

2222
CI fails a PR that stages a 6.0 change without touching the upgrade guide. If it flags something that isn't a 6.0 change, add the `no-upgrade-guide` label, say why here, and re-run the job.
2323

‎.github/workflows/python-hatch-workflow.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
fi
235235
236236
# A pull request that stages a 6.0 change (a deprecation, a will-raise
237-
# warning, "removed in 6.0") has to touch the current upgrade guide (docs/upgrade/6.4.md) in the same PR.
237+
# warning, "removed in 6.0") has to touch the current upgrade guide (docs/upgrade/6.5.md) in the same PR.
238238
# #1200/#1201 shipped 5.55.0 deprecations with no guide entry, and nothing
239239
# mechanical noticed (bead edgartools-07lk.14). Pull requests only: the check
240240
# reads the PR's diff, and main has no PR to read. Labels are read live

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ hatch run check-regression-provenance # CI runs this before tests
3838
- The `Filing.text()`, `Filing.html()` and `Attachment.empty` contracts are frozen. Fix text extraction in `FilingSGML` or `edgar/documents`, never by rerouting `Filing.*`.
3939
- Test cassettes are recorded from live SEC, against `main`, and never edited afterwards (CONTRIBUTING.md, "Test Cassettes").
4040
- Never edit `CHANGELOG.md`. Add a fragment instead: `changelog.d/<issue>.<section>.md` (see `changelog.d/README.md`).
41-
- A deprecation or breaking change needs an entry in the current upgrade guide, `docs/upgrade/6.4.md`. CI fails the PR without one.
41+
- A deprecation or breaking change needs an entry in the current upgrade guide, `docs/upgrade/6.5.md`. CI fails the PR without one.
4242

4343
## Definition of done
4444

‎CHANGELOG.md‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [6.4.0] - 2026-11-24
11+
12+
### Added
13+
14+
- **Statement exports can skip metadata lookups.** `Statement.to_dataframe(include_metadata=False)` omits balance, weight, preferred sign, and both parent columns while preserving statement values. On ExxonMobil's FY2022 income statement, median export time was 14 ms without metadata and 119 ms with metadata. (GH #2019)
15+
- **`Company.get_filings(report_date=...)` finds a filing by the period it reports on.** `Company("AAPL").get_filings(form="10-K", report_date="2023-09-30")` returns the FY2023 10-K (`0000320193-23-000106`), filed 2023-11-03; it combines with the filing-date filters, and an invalid date raises an error naming `report_date`. (GH #2008)
16+
- **`Cell.xbrl_fact_ids` exposes Inline XBRL IDs from HTML table cells.** Oracle's filed $3,726 million EMEA revenue cell can be traced to its explicit Inline XBRL footnote through the existing document APIs. (GH #2016)
17+
- **`edgar_read` can now return more or less than 6,000 characters per text section.** The new optional `max_chars` parameter sets the cap per section; omitting it keeps the 6,000-character default, and 13F-HR holdings stay bounded by `limit`. Very large values can return a whole filing in one result.
18+
- **Missing balance-sheet totals can be reconstructed with `Financials.derive_total_liabilities()`.** Amazon's Q2 2026 10-Q (`0001018724-26-000026`) omits a standalone total. The method reconciles $544,069 million of reported components against assets less equity and returns both calculations for audit. Existing getters and ratios continue to use filed totals. (GH #1878)
19+
- **Python 3.15 is supported.** The fast suite passes on CPython 3.15.1 (52,212 tests), and post-merge CI now runs it on 3.15 alongside 3.11 and 3.13.
20+
21+
### Changed
22+
23+
- **`Company("NAVI")` facts reach back past Navient's 2026 holding-company reorganization.** Navient Holdings (CIK 2152623) is now listed as the successor of Navient Corp (CIK 1593538), so `get_facts()` merges the predecessor's history; FY2024 net income reads $131 million from Navient Corp's 10-K.
24+
- **`Company` objects now compare and hash by CIK.** `Company("AAPL") == Company(320193)` is now `True`, where it was `False` before (equality was object identity), so companies de-duplicate in sets and work as dictionary keys. An `Entity` equals a `Company` with the same CIK; a successor and its predecessor stay unequal.
25+
- **`Company.get_filings()` now includes a successor registrant's predecessor history.** For the 10 reviewed successions, filings follow the old CIK as `get_facts()` already did, so `Company("XOM").get_filings(form="10-K")` returns Exxon Mobil Corp's 31 10-Ks instead of none, with `cik` and `company` columns naming each filer. Pass `predecessors=False` for the new CIK alone; `Company.successor` gives the reverse.
26+
27+
### Fixed
28+
29+
- **Balance-sheet validation counts temporary equity.** When a balance sheet has no combined liabilities-and-equity total, `validate()` now adds temporary (mezzanine) equity such as redeemable preferred stock, so Gladstone Capital's 10-K (`0001143513-26-000014`: assets $973,474,000 = liabilities $453,111,000 + equity $469,298,000 + temporary equity $51,065,000) is valid instead of invalid.
30+
- **497K fee tables no longer drop filed waivers or quarter dates.** Waiver rows that name the management fee, gross totals qualified "before fee waivers", wrapped labels and "fees waived" wording each lost or misplaced a filed value; over 150 sampled 497Ks, share classes where total plus waiver does not equal net fell from 7 to 0. Best/worst quarter labels written "4Q 2023" or "12/31/2023" are now kept.
31+
- **10-K and 10-Q sections laid out as absolutely positioned lines lost lines at their edges.** A line holding an empty spacer `div` was read as having no text, so Henry Schein's FY2023 Item 7 stopped at "please see" and Item 2 opened mid-sentence. Over 17 filings in this layout, 20 sections now open on their own heading and 55 have a corrected end, most of them a truncated sentence or the next item's heading.
32+
- **`get_gross_profit()` from components now answers the fiscal year when `annual=True`.** For filers that tag no GrossProfit, revenue and cost were each the newest fact of any length, so Procter & Gamble's annual gross profit was one quarter ($11,598M); it is now FY2026's $43,670M. Both parts come from the same latest period, and no older year stands in when that period's cost is untagged.
33+
- **`SixK.text()` rendered a 6-K's XBRL files and skipped its cover page.** Every attachment but graphics counted as an exhibit, so the FUTU 6-K's text was 13.5 million characters of XBRL instance, linkbases and viewer pages (now 666 thousand, in 1.5 s instead of 28 s), and a 6-K with its content in the cover came back empty. `SixK.exhibits` now holds the EX-* documents, and `text()` renders the cover page and those exhibits, as `EightK.text()` does. (GH #844)
34+
- **A successor registrant's merged filings no longer list one quarter twice.** NorthWestern Energy Group's 10-Q for the quarter to 2023-09-30 appeared twice, its own and its predecessor's; the successor's is now kept. Merging also no longer fails when one registrant's filing list is empty, `filter(ticker=)` keeps predecessor rows, and accession lookups the successor answers skip the predecessor download.
35+
- **The facts frame now drops an extensible-enumeration fact repeated with different whitespace.** One member set filed once with spaces and once with line breaks stayed as two rows, because duplicates were compared as raw strings. Enumeration values now compare with whitespace collapsed, while `value` is still returned as filed; row counts across the 47 bundled XBRL fixtures (94,996 facts) are unchanged.
36+
- **Calculation trees no longer invent or guess a weight.** A calculation arc with a missing, unparseable or zero weight used to count as +1 (or 0), and two arcs between the same concepts with different weights kept whichever came first. Both are now left out of the tree with a warning; all 7,006 calculation arcs in the 50 bundled filing fixtures are unchanged.
37+
- **EntityFacts no longer reports a continuing-operations subtotal as total operating cash flow when the same period has nonzero discontinued operating cash.** SIFCO's FY2025 lookup returned the $127,000 continuing subtotal despite a separately reported $5,000 discontinued amount. (GH #1987)
38+
- **`edgar_trends(..., period="quarterly")` no longer overwrites quarterly revenue with 6M/9M YTD cumulative figures.** `_prefer_consolidated_totals` now compares only within the period-filtered window so Apple Q3 FY2026 (`0000320193-26-000020`) returns $109.4B instead of $364.4B (9M YTD) while MetLife Q3 2026 (`0001099219-26-000062`) still upgrades its $728M ASC-606 slice to $20.5B consolidated quarterly revenue.
39+
- **A fund series or class with more than 100 filings was missing one.** Paging through SEC's series filing list skipped position 100, so `Fund("VEXMX")`'s series returned 485 of its 486 filings and silently dropped a 2023 24F-2NT. The second page now starts at 100.
40+
- **Match exact text values in filing XBRL queries.** On Tesla's June 2024 Form 10-Q, `by_value("10-Q")` now finds the one filed document-type fact instead of returning zero matches. (GH #2003)
41+
- **EntityFacts now requires matching reporting dates when deriving revenue or gross profit.** The gross profit fallback returned $33.68B for Starbucks by subtracting a 2020 half-year cost from FY2026 revenue. It now returns `None` for those inputs. (GH #1979)
42+
43+
### Performance
44+
45+
- **Parsing an inline XBRL filing no longer re-scans nested TextBlocks node by node.** Removing ix: tags from escaped TextBlock values now runs inside lxml, cutting that step from 17.9 ms to 8.3 ms on Apple's FY2026 10-K and full parsing by about 2.5%. Extracted facts are unchanged across 247,860 facts in 86 fixtures.
46+
1047
## [6.3.0] - 2026-11-17
1148

1249
### Added

‎changelog.d/1742.fixed.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎changelog.d/1760.fixed.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎changelog.d/1878.added.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎changelog.d/1889.changed.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎changelog.d/1979-annual-components.fixed.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎changelog.d/1979.fixed.md‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)