Skip to content

[WIP] Discuss type implementation in PR conversation#1565

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/discuss-type-implementation
Closed

[WIP] Discuss type implementation in PR conversation#1565
Copilot wants to merge 1 commit intomainfrom
copilot/discuss-type-implementation

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

  • Remove string-handling validation code from _PromptIntelDataset.__init__ (the isinstance checks accepting raw strings are inconsistent with enum-only type hints)
  • Remove the Raises docstring section that mentions ValueError for invalid severity/category (no longer raised)
  • Remove tests that test string inputs (test_init_invalid_severity_raises, test_init_invalid_category_raises) since we rely on the type system for this
  • Run unit tests to verify correctness

Copilot AI requested a review from romanlutz April 4, 2026 09:42
Copilot stopped work on behalf of romanlutz due to an error April 4, 2026 09:42
@romanlutz romanlutz closed this Apr 4, 2026
@romanlutz romanlutz deleted the copilot/discuss-type-implementation branch April 4, 2026 09:42
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