it doesn't have to be nominal, MyPy supports structural sub-typing through Protocols [1]
[1] https://mypy.readthedocs.io/en/stable/protocols.html
it doesn't have to be nominal, MyPy supports structural sub-typing through Protocols [1]
[1] https://mypy.readthedocs.io/en/stable/protocols.html