Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Python - Automatically Implementing Abstract Methods

Is there any support to automatically implement all abstract methods of an abstract class in VSCode with Python Environment?

class AbstractClass(ABC):

    @abstractclass
    def abstract_method():
        pass

class NonAbstractClass(AbstractClass):

    # shortcut in vscode to implement all abstract methods
    # it works if I start writing methods and then it autocompletes, that is not what I am looking for
like image 460
jAdex Avatar asked Jun 01 '26 04:06

jAdex


1 Answers

Seems like it is now (2024-04-17) in pre-release. Checkout the release notes.

like image 166
Dror Avatar answered Jun 02 '26 19:06

Dror