Skip to content

Conversation

@ducdetronquito
Copy link
Contributor

@ducdetronquito ducdetronquito commented Mar 7, 2025

Hello !
Thanks for maintaining model bakery :)

I use pyright in strict mode to typecheck my codebases and using baker.make or baker.prepare fail to typecheck because _save_kwargs and attrs are incomplete since Dict is inferred as dict[Unknown, Unknown].

I just made this little PR to clarify the type annotations for these two parameters.

Have a nice day 🌴

Copy link
Member

@amureki amureki left a comment

Choose a reason for hiding this comment

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

Great, thanks @ducdetronquito for running extra checks and improving the annotations! 🏅

@amureki amureki merged commit 7916aeb into model-bakers:main Mar 7, 2025
10 checks passed
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