2 ms·
Ah I see, TypedDict won't be useful here. Looks like there is a work in progress though[1] and people in the ticket provided some workarounds[2][3] for now. [
by takeda 7y ago
Ah I see, TypedDict won't be useful here.
Looks like there is a work in progress though[1] and people in the ticket provided some workarounds[2][3] for now.
[1] https://github.com/python/mypy/issues/731 https://github.com/python/mypy/issues/731
[2] https://github.com/python/mypy/issues/731#issuecomment-539905783 https://github.com/python/mypy/issues/731#issuecomment-53990...
[3] https://gist.github.com/catb0t/bd82f7815b7e95b5dd3c3ad294f3cbbf https://gist.github.com/catb0t/bd82f7815b7e95b5dd3c3ad294f3c...