Skip to content

db.py: Refactor type annotations#1787

Open
RA80533 wants to merge 1 commit intosmicallef:masterfrom
RA80533:refactor/typing/spiderfoot--db
Open

db.py: Refactor type annotations#1787
RA80533 wants to merge 1 commit intosmicallef:masterfrom
RA80533:refactor/typing/spiderfoot--db

Conversation

@RA80533
Copy link
Contributor

@RA80533 RA80533 commented Jun 5, 2023

  • scanResultEvent()'s arguments were not documented correctly. Many of them could be list in addition to str.
  • Note that scanResultEvent() is not called correctly in several places (filterFp is often passed as the third arg).
  • scanConfigSet()'s scan_id was incorrectly documented as being an int (it's actually a str). It doesn't appear that this distinction matters to any of the places the function was called.

@codecov-commenter
Copy link

codecov-commenter commented Jun 6, 2023

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.75%. Comparing base (d8f628b) to head (3bf759a).
Report is 9 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1787   +/-   ##
=======================================
  Coverage   46.74%   46.75%           
=======================================
  Files         690      690           
  Lines       45701    45706    +5     
=======================================
+ Hits        21365    21370    +5     
  Misses      24336    24336           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RA80533 RA80533 force-pushed the refactor/typing/spiderfoot--db branch from 3742694 to 3bf759a Compare June 6, 2023 20:06
cbxss added a commit to cbxss/spiderfoot that referenced this pull request Feb 7, 2026
…ken modules

- Migrate from requirements.txt to pyproject.toml with relaxed dependency bounds
- Switch to uv for package management across project and Docker
- Update Docker: Alpine 3.20, Python 3.12-bookworm, fix Node/Wappalyzer setup
- Fix secure library API for 1.x (was 0.3.x), PyPDF2 -> pypdf API
- Fix 14 type()==Y patterns to isinstance()
- Cherry-pick upstream bug fixes: WhatsMyName fields (smicallef#1894), nmap parsing (smicallef#1879),
  DNS for Family IP (smicallef#1872), nuclei/wafw00f/whatweb JSON parsing (smicallef#1952),
  db.py UnboundLocalError (smicallef#1787), dev port correlation (smicallef#1827),
  accounts strip_bad_char support (smicallef#1828)
- Add 5 new modules: InternetDB (Shodan free), LeakCheck (paid+free),
  WhoisFreaks, ip2location.io

238/238 modules load successfully on Python 3.12.

Co-Authored-By: Claude Opus 4.6 <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