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
classExampleSubClass(BaseClass):
defmethod1(self): ...
defmethod2(self): ...
#but I forgot to override method3
Then I will get the following error when I try to use ExampleSubClass in application code: Only concrete class can be given where "type[ExampleSubClass]" is expected [type-abstract]
It would be great if the error message specified why ExampleSubClass is not a concrete class. An ideal error message would look something like: "Only concrete class can be given where type[ExampleSubClass] is expected. ExampleSubClass has abstract methods [method3]"
The text was updated successfully, but these errors were encountered:
Feature
Add more details to the [type-abstract] error message.
Pitch
If I have the following abstract base class
And later I make a subclass of that base class
Then I will get the following error when I try to use
ExampleSubClass
in application code:Only concrete class can be given where "type[ExampleSubClass]" is expected [type-abstract]
It would be great if the error message specified why ExampleSubClass is not a concrete class. An ideal error message would look something like: "Only concrete class can be given where type[ExampleSubClass] is expected. ExampleSubClass has abstract methods [method3]"
The text was updated successfully, but these errors were encountered: