Skip to content

Allow setting signatures via decorators #438

@luigi311

Description

@luigi311

Is your feature request related to a problem? Please describe.
Right now we have to use 's' for return types but this causes issues with mypy due to unknown type errors and it causes it to get highlighted in editors with mypy support.

Describe the solution you'd like
A solution could be to instead use a decorator to set the signatures so we can use normal python types in the typing system.

Additional context
This was originally drafted in python-dbus-next here altdesktop/python-dbus-next#111 for some more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions