Skip to content

Fix typeddict issue with generics - #120

Merged
pgjones merged 2 commits into
pgjones:mainfrom
semohr:fix_typeddict
Aug 31, 2026
Merged

Fix typeddict issue with generics#120
pgjones merged 2 commits into
pgjones:mainfrom
semohr:fix_typeddict

Conversation

@semohr

@semohr semohr commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Hi @pgjones,
I had some time to fix the issue #119 this afternoon.

This PR extends the model_class conversion guard to less strict version, which supports generic TypedDict types.
Further I refactored the test around conversion slightly to add tests for the TypedDict[Generic] edge case.

Best, S

@semohr

semohr commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Am not really too sure where the mypy issue comes from, but it seems to be raised on the main branch too.

@semohr

semohr commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

@pgjones Hope it’s okay to ping you. Anything I can do to help push this along?
I’ve been using it for a while now and it’s been working great for me.

@pgjones
pgjones merged commit 65d133e into pgjones:main Aug 31, 2026
11 checks passed
@pgjones

pgjones commented Aug 31, 2026

Copy link
Copy Markdown
Owner

Thanks!

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