Skip to content

MAINT: mypy fixes (comicjailbreak)#1640

Merged
romanlutz merged 1 commit intomicrosoft:mainfrom
jbolor21:bjagdagdorj/comicjailbreak_precommit
Apr 22, 2026
Merged

MAINT: mypy fixes (comicjailbreak)#1640
romanlutz merged 1 commit intomicrosoft:mainfrom
jbolor21:bjagdagdorj/comicjailbreak_precommit

Conversation

@jbolor21
Copy link
Copy Markdown
Contributor

@jbolor21 jbolor21 commented Apr 22, 2026

Description

The ComicJailbreakDataset.__get_template_async() accesses two fields from MemoryInterface without handling "None"

  • results_path: str|None used directly in string concatenation causes "Unsupported left operand type for + ("None")
  • results_storage_io has a path_exists() with no null check. This PR fixes that by adding safe handling of "None"

Tests and Documentation

reran precommit hooks & unit tests

@jbolor21 jbolor21 marked this pull request as draft April 22, 2026 21:05
@jbolor21 jbolor21 changed the title MAINT: Precommit formatting fixes (comicjailbreak) MAINT: mypy fixes (comicjailbreak) Apr 22, 2026
@jbolor21 jbolor21 marked this pull request as ready for review April 22, 2026 21:14
@rlundeen2 rlundeen2 self-assigned this Apr 22, 2026
@romanlutz romanlutz merged commit c295d2d into microsoft:main Apr 22, 2026
39 checks passed
@jbolor21 jbolor21 deleted the bjagdagdorj/comicjailbreak_precommit branch April 23, 2026 00:55
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.

3 participants