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
typing.Protocol are the new way to declare interfaces. But it's much harder to process than zope interfaces because implementers do not require to explicitly declare implementing a specific protocol. So we'll have to do some matching.. The problem with this is the fact that we won't ever have a complete understanding of the type system, so we'll have to find middle ground somewhere.
@runtime_checkable decorator make things a little bit simpler since it skip the type checks to only matches the names of the members, so that's a good starting point.
The text was updated successfully, but these errors were encountered:
typing.Protocol
are the new way to declare interfaces. But it's much harder to process than zope interfaces because implementers do not require to explicitly declare implementing a specific protocol. So we'll have to do some matching.. The problem with this is the fact that we won't ever have a complete understanding of the type system, so we'll have to find middle ground somewhere.@runtime_checkable
decorator make things a little bit simpler since it skip the type checks to only matches the names of the members, so that's a good starting point.The text was updated successfully, but these errors were encountered: