pygobject-stubs icon indicating copy to clipboard operation
pygobject-stubs copied to clipboard

Use `@abstractmethod` decorator

Open vanillajonathan opened this issue 4 months ago • 2 comments

Please use the @abstractmethod decorator so that I can use the @override decorator.

vanillajonathan avatar Aug 30 '25 00:08 vanillajonathan

AFAIK you don't need a method to have @abstractmethod to be able to use @override in a subclass, the method just has to exist. You might be running into #219?

jamiethecat avatar Aug 30 '25 13:08 jamiethecat

Ah, yes!

You're right, the interface lacks the vfuncs. That's the issue I have.

vanillajonathan avatar Aug 30 '25 20:08 vanillajonathan