Method 'detach' already has a docstring

Yes,this occurs only in spyder. I ran the same code in jupyter and it was perfectly fine