Skip to content

Fixing httpx.ReadTimeout handling in core.py#6

Merged
dgunning merged 3 commits into
dgunning:mainfrom
linusbiostat:main
Feb 22, 2023
Merged

Fixing httpx.ReadTimeout handling in core.py#6
dgunning merged 3 commits into
dgunning:mainfrom
linusbiostat:main

Conversation

@linusbiostat
Copy link
Copy Markdown
Contributor

Hey! Congrats to this great project!
I've been getting some httpx.ReadTimeouts while trying to fetch data from the SEC. To handle these, I've added the retry wrapper from the retry package which retries after 2 seconds until the connection works. I've also added the dependency to pyproject.toml

retry after 5 seconds: useful when httpx read timeout
added retry dep
@dgunning
Copy link
Copy Markdown
Owner

Thanks for your contribution .. checking ..
Cheers!

Copy link
Copy Markdown
Owner

@dgunning dgunning left a comment

Choose a reason for hiding this comment

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

Looks fairly straightforward. Will merge and test

@dgunning dgunning merged commit a7a8f8b into dgunning:main Feb 22, 2023
baqamisaif pushed a commit to baqamisaif/edgartools that referenced this pull request Dec 27, 2025
This commit addresses 6 priority improvements to edgar/llm.py:

- Fix Issue dgunning#1: extract_sections() now returns list when track_filtered=False
  (was incorrectly returning tuple, breaking API contract)
- Fix Issue dgunning#2: Refactor tools.llm_extraction to edgar.llm_extraction
  (moves extract_item_with_boundaries to packaged module)
- Fix Issue dgunning#3: Remove dead code _STATEMENT_KEYWORDS constant
- Fix Issue dgunning#4: Add comprehensive type hints to all private functions
- Fix Issue dgunning#5: Upgrade error messages from debug to warning level
- Fix Issue dgunning#6: Add unit tests for return type contracts

Breaking change fix: Users relying on default behavior now get list instead
of (list, {}) tuple, matching documented API contract.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
sangicook pushed a commit to sangicook/edgartools that referenced this pull request Apr 6, 2026
6 amendments from advocate/critic/deepthinker consensus (8/10 confidence):
- companies.yaml read-only during expansion (pre-populate + JSON migration)
- Per-root-cause confidence thresholds (not single 0.90)
- Archetype gap detection in /expand-cohort
- Pre-expansion override cleanup (promote industry patterns)
- Pattern detection in /investigate-gaps (3+ same-industry fixes)
- Priority queue (group gaps by metric+industry, highest leverage first)
- Success criterion dgunning#6: verified within 3 outer-loop iterations

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants