hid_base

This module provides the Robot interface for HID interactions.

  • Type: LIBRARY

  • Scope: GLOBAL

Keywords

Abstractmethod

A decorator indicating abstract methods.

Requires that the metaclass is ABCMeta or derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods are overridden. The abstract methods can be called using any of the normal 'super' call mechanisms. abstractmethod() may be used to declare abstract methods for properties and descriptors.

Usage:

class C(metaclass=ABCMeta): @abstractmethod def my_abstract_method(self, arg1, arg2, argN): ...

Positional and named arguments

Name

Type

Default Value

Kind

Required

funcobj

POSITIONAL_OR_NAMED

Yes


Named Tuple

Typed version of namedtuple.

Usage::

class Employee(NamedTuple): name: str id: int

This is equivalent to::

Employee = collections.namedtuple('Employee', ['name', 'id'])

The resulting class has an extra __annotations__ attribute, giving a dict that maps field names to types. (The field names are also in the _fields attribute, which is part of the namedtuple API.) An alternative equivalent functional syntax is also accepted::

Employee = NamedTuple('Employee', [('name', str), ('id', int)])

Positional and named arguments

Name

Type

Default Value

Kind

Required

typename

POSITIONAL_ONLY

Yes

fields

None

POSITIONAL_ONLY

No

POSITIONAL_ONLY_MARKER

No

kwargs

VAR_NAMED

No