Skip to content

Conversation

@RayBB
Copy link
Collaborator

@RayBB RayBB commented Aug 2, 2025

  • add typehints for author import dict
  • validate the TypedDict

Closes #

Technical

Testing

Screenshot

Stakeholders

@RayBB RayBB changed the title typehints/author import add typehints to author imports Aug 2, 2025
@cdrini cdrini assigned cdrini and unassigned mekarpeles Sep 29, 2025
@RayBB RayBB force-pushed the typehints/author-import branch from 0ab7267 to c923801 Compare October 29, 2025 04:07
@RayBB RayBB requested a review from cdrini October 29, 2025 04:07
Copy link
Collaborator

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wooohooo!! This looks fantastic and a huge QOL improvement 🚀

or new candidate dict without "key".
"""
assert isinstance(author_import_record, dict)
try:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We checked, and the one place this method is used, it ensure the input is a dict, so it's cleaner to rely on the typehint here since that appears to be actually enforced!

@cdrini cdrini merged commit 3681de5 into master Oct 29, 2025
8 checks passed
@cdrini cdrini deleted the typehints/author-import branch October 29, 2025 17:03
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.

4 participants