TypedDict (and pydantic) usage across modules #1208
Answered
by
dineshbvadhia
dineshbvadhia
asked this question in
Q&A
-
I want to use TypedDict objects created in one module across other modules. The simple example below works with Python (3.9.12) but throws up mypy (0.961) errors which I've not been able to resolve. I also get similar errors with Pydantic with the mypy plugin enabled. Please explain why this is and how to solve it. Thank-you wind.py
willow.py
|
Beta Was this translation helpful? Give feedback.
Answered by
dineshbvadhia
Jun 8, 2022
Replies: 2 comments 2 replies
-
Ah, I solved the problem with the judicious use of 'self' :) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dineshbvadhia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I solved the problem with the judicious use of 'self' :)