← Back
Editing: _structures.cpython-312.pyc
� ]*jU � �X � d Z ddlmZ G d� d� Z G d� d� Z e� Z e� Zy)u� Backward-compatibility shim for unpickling Version objects serialized before packaging 26.1. Old pickles reference ``packaging._structures.InfinityType`` and ``packaging._structures.NegativeInfinityType``. This module provides minimal stand-in classes so that ``pickle.loads()`` can resolve those references. The deserialized objects are not used for comparisons — ``Version.__setstate__`` discards the stale ``_key`` cache and recomputes it from the core version fields. � )�annotationsc � � e Zd ZdZdd�Zy)�InfinityTypezFStand-in for the removed ``InfinityType`` used in old comparison keys.c � � y)N�Infinity� ��selfs �D/opt/hc_python/lib/python3.12/site-packages/packaging/_structures.py�__repr__zInfinityType.__repr__ s � �� N��return�str��__name__� __module__�__qualname__�__doc__r r r r r r s � �P�r r c � � e Zd ZdZdd�Zy)�NegativeInfinityTypezNStand-in for the removed ``NegativeInfinityType`` used in old comparison keys.c � � y)Nz -Infinityr r s r r zNegativeInfinityType.__repr__ s � �r Nr r r r r r r s � �X�r r N)r � __future__r r r r �NegativeInfinityr r r �<module>r s5 �� � #�� �� � �>��'�)� r
Save File
Cancel