Skip to content

feat: discover base classes in createstubs.py #665

@Josverl

Description

@Josverl

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

This process can possibly be used in createstubs.py , if micropython also supports tis.

before starting the implementation, this should first be tested , beprhaps un the unix port of micropython

docker pull micropython/unix

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions