Skip to content

docs(upgrade): FilingHomepage soup deprecation, Filing.html() None, httpx2 out of 6.0 - #1392

Merged
dgunning merged 1 commit into
mainfrom
docs/upgrade-guide-5-60-pass
Oct 1, 2026
Merged

dgunning merged 1 commit into
mainfrom
docs/upgrade-guide-5-60-pass

Conversation

@dgunning

@dgunning dgunning commented Oct 1, 2026

Copy link
Copy Markdown
Owner

What this changes

This is the 5.60.0 pass on docs/upgrade/6.0.md, following the 2026-09-30 6.0 decisions.

  • New section, FilingHomepage takes an lxml tree, not BeautifulSoup. FilingHomepage(soup=...) and a BeautifulSoup passed as root to FilingHomepage or Attachments.load have warned "removed in v6.0" since 5.53.0, with no guide entry. The replay of the new upgrade-guide gate (ci: fail a PR that stages a 6.0 change without updating the upgrade guide (07lk.14) #1388) found the gap. The section covers before/after code, the parse_homepage_html bytes-over-str note, and why filing.homepage users are unaffected.
  • Errors section: filing.html() keeps returning None in 6.0 when the filing has no HTML primary document. fix(filings): Filing.html() returns None instead of raising when the homepage has no primary document #1338 (5.59.0) made the no-primary-document case return None instead of raising AttributeError, and the guide now records that as the decided behaviour.
  • Still to come: httpx → httpx2 is not in 6.0 (decided 2026-09-30). Previously the row said "under consideration".
  • Top-of-page note: it claimed only two changes rename or move anything, which the settings, date-helper, access-mode and soup= sections had made false. It's rewritten as loud changes (warn, then break) vs quiet ones (different values).

Verification

I verified every behavioural claim by running it:

  • FilingHomepage(url, soup=BeautifulSoup(...)) emits both deprecation warnings.
  • FilingHomepage(url, parse_homepage_html(html)) emits none, with warnings set to error.
  • FilingHomepage.load (and therefore filing.homepage) goes through parse_homepage_html.
  • root is the second positional parameter.

The three regression files that read this guide pass (179).

🤖 Generated with Claude Code

…ttpx2 out of 6.0

The 5.60.0 guide pass (bead edgartools-07lk.10, 2026-09-30 decisions).

- New section: FilingHomepage(soup=...) and a BeautifulSoup passed as `root`
  to FilingHomepage / Attachments.load have warned "removed in v6.0" since
  5.53.0 (4e31aed) with no guide entry. The replay of the new upgrade-guide
  gate (#1388) found it. Both warnings and the warning-free
  parse_homepage_html form verified by running them.
- Errors section: filing.html() keeps returning None in 6.0 when there is no
  HTML primary document. #1338 (5.59.0) made the no-primary-document case
  return None instead of raising AttributeError; the guide now says that is
  the decided 6.0 behaviour rather than leaving it to omission.
- Still to come: httpx -> httpx2 is out of 6.0 (decided 2026-09-30), not
  "under consideration".
- The top-of-page note claimed only two changes rename or move anything;
  settings, date helpers, access modes and FilingHomepage(soup=) made it
  false. Rewritten as loud (warns, then breaks) vs quiet (different values).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dgunning
dgunning enabled auto-merge (squash) October 1, 2026 18:16
@dgunning
dgunning merged commit 82cd14b into main Oct 1, 2026
8 checks passed
@dgunning
dgunning deleted the docs/upgrade-guide-5-60-pass branch October 1, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant