Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting is causing parent-child relationships to be defined out of order #231

Open
daltairwalter opened this issue Sep 16, 2024 · 1 comment

Comments

@daltairwalter
Copy link

When I run pybind11-stubgen, I see ouput:

class SimpleSetupArrayOutput(SimpleSetupEntity):  
    def getDataType(self) -> DATA_TYPE:  
        ...  
class SimpleSetupEntity:  
    def getName(self) -> str:  
        ... 

This is out of order because the SimpleSetupArrayOutput is a subclass of SimpleSetupEntity and this causes linting errors.  Is there a way to turn off sorting?  Or is it possible to sort and then reorder as necessary?
@sillydan1
Copy link

I have this problem as well. The generated classes look like:

class BusyError(Error):
    pass
class Error(Exception):
    pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants