You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because I can't see how to add useful type hints to XBlock without making the fields behave correctly.
Fortunately, I think this should be doable, because XBlock fields are implemented using the descriptor protocol, which mypy is awesome enough to understand 🔥 I'm pretty sure that this is how Django does things, too.
Activity
kdmccormick commentedon Jan 31, 2024
I'm folding this into:
because I can't see how to add useful type hints to XBlock without making the fields behave correctly.
Fortunately, I think this should be doable, because XBlock fields are implemented using the descriptor protocol, which mypy is awesome enough to understand 🔥 I'm pretty sure that this is how Django does things, too.