Skip to content

Notes: Drop imghdr from Notes artifact#1488

Draft
Mirochill wants to merge 1 commit into
abrignoni:mainfrom
Mirochill:fix-1246-drop-imghdr
Draft

Notes: Drop imghdr from Notes artifact#1488
Mirochill wants to merge 1 commit into
abrignoni:mainfrom
Mirochill:fix-1246-drop-imghdr

Conversation

@Mirochill

Copy link
Copy Markdown
Contributor

Closes #1246.
Closes #1321.

Summary:

  • Replace the Notes artifact's deprecated imghdr.what() checks with the existing scripts.filetype.image_match helper.
  • Keep thumbnail creation limited to JPEG/PNG attachments while avoiding the removed stdlib imghdr module.

Validation:

  • git diff --check
  • rg -n "\bimghdr\b|imghdr\.what" . --glob "!*.ipynb"
  • Not run locally: tests/build/lint.

@JamesHabben

Copy link
Copy Markdown
Collaborator

this is marked as a draft still, but it looks like a valid issue to address. @Mirochill did you want to update and remove conflicts?

@JamesHabben JamesHabben added the question Further information is requested label Jun 18, 2026
@JamesHabben JamesHabben changed the title Drop imghdr from Notes artifact Notes: Drop imghdr from Notes artifact Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

standard-imghdr missing Make "standard-imghdr" a requirement for Python 3.13 compatibility

2 participants