fastai / nbdev-vscode

MIT License
41 stars 5 forks source link

Fix @patch integration with VSCode #24

Open Elijas opened 10 months ago

Elijas commented 10 months ago

Problem statement

Cmd + Click on my_method in

from my_package.core import MyClass
my_class = MyClass()
my_class.my_method()

doesn't take to the method definition (or any other IDE integration) when the method was created with

# %% ../nbs/00_core.ipynb 2
from fastcore.basics import patch
@patch
def my_method(self: MyClass):
    ...