Correct type hint for related models #1061
Unanswered
acarreno-houseloan
asked this question in
Question
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say I have these models, and I need them to go in different collections:
There will be 2 Pylance errors:
House
is instantiated, I get:house.door
, this error will appear:What is the correct way of defining my models so the type hint works?
Beta Was this translation helpful? Give feedback.
All reactions