TypeError: Cannot read property 'category' of undefined #118
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
A combination of property deleters and the
abc.ABCMeta
class produces the above error in the Pylance logs when trying to access a property of an instance of the class. I actually discovered this while using theTime
class from Astropy, but I realise that's a very complicated class. Hopefully the snippet below makes this clearer.Environment data
Expected behaviour
No error
Actual behaviour
Problem: "An internal error occurred while performing type checking", see logs below.
Logs
Trying to hover over the instance or property gives the following extra readout with the same error:
Code Snippet / Additional information
The errors are very easy to produce under normal conditions if Astropy is installed:
Delving into Astropy I eventually settled on this basic example that creates the errors above:
I have no idea why the combination of the property deleter and the ABCMeta class produces the above errors, but hopefully that snipped is a start for someone to have a look into this.
The text was updated successfully, but these errors were encountered: