Skip to content

Abstract Python classes #6

@matveitolochko

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

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