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

Abstract Python classes #6

Open
Tracked by #5
AtomicGamer9523 opened this issue Dec 30, 2023 · 0 comments · May be fixed by #5
Open
Tracked by #5

Abstract Python classes #6

AtomicGamer9523 opened this issue Dec 30, 2023 · 0 comments · May be fixed by #5
Assignees
Labels
B-Nightly Branch: Nightly O-Other OS: Other / Unknown / Universal T-Bug Tag: Bug, error, or unintended behavior WIP Progress: This is work in progress

Comments

@AtomicGamer9523
Copy link
Member

Currently, there is no way to have rust implementations for abstract python classes.

Asked here: PyO3/pyo3#991

Offending code:

class HardwareComponent(_abc.ABC):
    """Represents a basic hardware component."""

    @_abc.abstractproperty
    def uuid(self) -> str:
        """The UUID of this hardware component."""
        ...
@AtomicGamer9523 AtomicGamer9523 added T-Bug Tag: Bug, error, or unintended behavior O-Other OS: Other / Unknown / Universal WIP Progress: This is work in progress B-Nightly Branch: Nightly labels Dec 30, 2023
@AtomicGamer9523 AtomicGamer9523 self-assigned this Dec 30, 2023
@AtomicGamer9523 AtomicGamer9523 linked a pull request Dec 30, 2023 that will close this issue
6 tasks
@AtomicGamer9523 AtomicGamer9523 linked a pull request Jan 11, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-Nightly Branch: Nightly O-Other OS: Other / Unknown / Universal T-Bug Tag: Bug, error, or unintended behavior WIP Progress: This is work in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant