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

Inheritance is not captured #118

Open
flying-sheep opened this issue Dec 11, 2024 · 0 comments · May be fixed by #120
Open

Inheritance is not captured #118

flying-sheep opened this issue Dec 11, 2024 · 0 comments · May be fixed by #120

Comments

@flying-sheep
Copy link
Contributor

flying-sheep commented Dec 11, 2024

#[gen_stub_pyclass]
#[pyclass(subclass)]
pub struct StoreConfig;

#[gen_stub_pyclass]
#[pyclass(extends=StoreConfig)]
pub struct FilesystemStoreConfig {
    root: String,
}

gets rendered to

class StoreConfig: ...
class FilesystemStoreConfig: ...

instead of

class StoreConfig: ...
class FilesystemStoreConfig(StoreConfig): ...
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

Successfully merging a pull request may close this issue.

1 participant