Skip to content

[WIP] Discuss type implementation in PR conversation - #1565

Closed
Roman Lutz (romanlutz) with Copilot wants to merge 1 commit into
mainfrom
copilot/discuss-type-implementation
Closed

[WIP] Discuss type implementation in PR conversation#1565
Roman Lutz (romanlutz) with Copilot wants to merge 1 commit into
mainfrom
copilot/discuss-type-implementation

Conversation

Copilot AI commented Apr 4, 2026

Copy link
Copy Markdown
Contributor
  • 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

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