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
Right, interface method cannot have self argument - it won't work at runtime (my guess). However, we might make @zope.interface.interface.fromMethod trick work, if that's acceptable in your case. It feels a bit like a hack though. It isn't anywhere in the official docs.
The trick here is to make it work both at runtime and during static checking.
eg I might want to define
but I get "Interface methods should not have 'self' argument"
The text was updated successfully, but these errors were encountered: