micropython-stubber icon indicating copy to clipboard operation
micropython-stubber copied to clipboard

feat: discover base classes in createstubs.py

Open Josverl opened this issue 7 months ago • 0 comments

for a class Registry it is possible to discover the base classes from the __bases__ attribute

print ( [ b.__name__ for b in Registry.__bases__]) 
# or 
print ( ",".join([ b.__name__ for b in vfs.VfsPosix.__bases__ if b.__name__ != 'object']))

can be used to construct the classdef including the base classes

Josverl avatar May 13 '25 08:05 Josverl