Skip to content

Abstract Python classes #6

Description

@matveitolochko

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."""
        ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

B-NightlyBranch: NightlyO-OtherOS: Other / Unknown / UniversalT-BugTag: Bug, error, or unintended behaviorWIPProgress: This is work in progress

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions