Skip to content

FIX pre-commit http error#1534

Merged
hannahwestra25 merged 5 commits intomicrosoft:mainfrom
hannahwestra25:hawestra/fix_http_overload
Mar 24, 2026
Merged

FIX pre-commit http error#1534
hannahwestra25 merged 5 commits intomicrosoft:mainfrom
hannahwestra25:hawestra/fix_http_overload

Conversation

@hannahwestra25
Copy link
Copy Markdown
Contributor

Description

pyrit/prompt_target/http_target/http_target.py:245: error: No overload variant of "split" matches argument types "str", "int"  [call-overload]
pyrit/prompt_target/http_target/http_target.py:245: note: Possible overload variants:
pyrit/prompt_target/http_target/http_target.py:245: note:     def split(pattern: str | Pattern[str], string: str, maxsplit: int = ..., flags: int | RegexFlag = ...) -> list[str | Any]
pyrit/prompt_target/http_target/http_target.py:245: note:     def split(pattern: bytes | Pattern[bytes], string: Buffer, maxsplit: int = ..., flags: int | RegexFlag = ...) -> list[bytes | Any]
Found 1 error in 1 file (checked 1 source file)

Tests and Documentation

ran test_http_target

@hannahwestra25 hannahwestra25 merged commit e2661bf into microsoft:main Mar 24, 2026
29 checks passed
jbolor21 pushed a commit to jbolor21/jbolor-PyRIT that referenced this pull request Mar 25, 2026
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