← Back
Editing: typing.cpython-312.pyc
� �ic�/ � � � d dl mZmZmZmZ d dlZ ej dd� d dlmZm Z g d�Z eZe ZeZeZ ede� Z ede� Z ed e� Z ed e� Z ede� Z ede� Z ed e� Z ede� Z ede� Zeeef Zd� Zd� Zd� Zd� Z d� Z!d� Z"d� Z#d� Z$d� Z% G d� de&� Z' G d� de&� Z( G d� de(� Z) G d� d e(� Z*y)!� )�Tuple�Dict�List�NewTypeN�GLibz2.0)�Variant�VariantType)�Bool�Str�Double�Byte�Int�Int16�UInt16�Int32�UInt32�Int64�UInt64�UnixFD�ObjPathr r r r r � Structure� get_native�get_variant�get_variant_type�is_tuple_of_one�unwrap_variant�is_base_type�get_type_arguments� get_dbus_type�VariantUnpacking�VariantUnpacker�VariantUnwrapperr r r r r r r r r c �, � t j | � S )z�Return DBus representation of a type hint. :param type_hint: a type hint :return: a string with DBus representation )�DBusType�get_dbus_representation�� type_hints �2/usr/lib/python3.12/site-packages/dasbus/typing.pyr r \ s � � �+�+�I�6�6� c �t � t | � t k( r| }nt | � }|�t d� �t ||� S )a^ Return a variant data type. The type of a variant is specified with a type hint. Example: .. code-block:: python v1 = get_variant(Bool, True) v2 = get_variant(List[Int], [1,2,3]) :param type_hint: a type hint or a type string :param value: a value of the variant :return: an instance of Variant zInvalid DBus value 'None'.)�type�strr � TypeErrorr )r'