# Path: pywayland/scanner/argument.py
# class ArgumentType(enum.Enum):
#     Int = enum.auto()
#     Uint = enum.auto()
#     Fixed = enum.auto()
#     String = enum.auto()
#     Object = enum.auto()
#     NewId = enum.auto()
#     Array = enum.auto()
#     FileDescriptor = enum.auto()


from dataclasses import dataclass
from typing import Type, TYPE_CHECKING
from pywayland.scanner.argument import ArgumentType
    from .interface import Interface  # noqa: F401
    def __init__(self, f):
        self.f = f

    def __get__(self, obj, owner):
        return self.f(owner)


@dataclass(frozen=True)
class Argument:
    argument_type: ArgumentType
    nullable: bool = False
    interface: Type["Interface"] | None = None

    @property
    def signature(self) -> str:
        if self.argument_type == ArgumentType.Int:
            base_signature = "i"
        elif self.argument_type == ArgumentType.Uint:
            base_signature = "u"
        elif self.argument_type == ArgumentType.Fixed:
            base_signature = "f"
        elif self.argument_type == ArgumentType.String:
            base_signature = "s"
        elif self.argument_type == ArgumentType.Object:
            base_signature = "o"
        elif self.argument_type == ArgumentType.NewId:
            if self.interface is None:
                base_signature = "sun"
            else:
                base_signature = "n"

# Path: pywayland/scanner/argument.py
# class ArgumentType(enum.Enum):
#     Int = enum.auto()
#     Uint = enum.auto()
#     Fixed = enum.auto()
#     String = enum.auto()
#     Object = enum.auto()
#     NewId = enum.auto()
#     Array = enum.auto()
#     FileDescriptor = enum.auto()


# Path: pywayland/protocol_core/argument.py
from dataclasses import dataclass
from typing import Type, TYPE_CHECKING
from pywayland.scanner.argument import ArgumentType
    from .interface import Interface  # noqa: F401

    def __init__(self, f):
        self.f = f

    def __get__(self, obj, owner):
        return self.f(owner)


@dataclass(frozen=True)
class Argument:
    argument_type: ArgumentType
    nullable: bool = False
    interface: Type["Interface"] | None = None

    @property
    def signature(self) -> str:
        if self.argument_type == ArgumentType.Int:
            base_signature = "i"
        elif self.argument_type == ArgumentType.Uint:
            base_signature = "u"
        elif self.argument_type == ArgumentType.Fixed:
            base_signature = "f"
        elif self.argument_type == ArgumentType.String:
            base_signature = "s"
        elif self.argument_type == ArgumentType.Object:
            base_signature = "o"
        elif self.argument_type == ArgumentType.NewId:
            if self.interface is None:
                base_signature = "sun"
            else:
                base_signature = "n"

        elif self.argument_type == ArgumentType.Array: