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
Enables definitions such as:
```
class FooInterface(Interface):
@Property
def bar(self):
pass
class Foo(implements(FooInterface)):
@Property
def bar(self):
return 'baz'
```
If the implementation is missing the `property` decorator, such as:
```
class FooInterface(Interface):
@Property
def bar(self):
pass
class Foo(implements(FooInterface)):
def bar(self):
return 'baz'
```
Then an error is raised showing that the method has the wrong type:
```
The following methods of FooInterface were implemented with incorrect types:
- bar: 'function' is not a subtype of expected type 'property'
```
0 commit comments