← Back
Editing: test_types.cpython-312.pyc
� �% gA � � � d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl mZmZ ddl mZmZ d� Zd � Zd � Z G d� de� Z G d � de� Zy)z� Tests for the `TypeChecker`-based type interface. The actual correctness of the type checking is handled in `test_jsonschema_test_suite`; these tests check that TypeChecker functions correctly at a more granular level. � )� namedtuple)�TestCase)�ValidationError� _keywords)�TypeChecker)�UndefinedTypeCheck�UnknownType)�Draft202012Validator�extendc � � |dk( S )N� � ��checker�instances �@/usr/lib/python3.12/site-packages/jsonschema/tests/test_types.py�equals_2r s � ��q�=�� c �@ � t | t � xr t | dd � S )N�_fields)� isinstance�tuple�getattr)r s r � is_namedtupler s � ��h��&�M�7�8�Y��+M�Mr c �Z � t j j |d� ryt |� S )N�objectT)r �TYPE_CHECKER�is_typer r s r �is_object_or_named_tupler s&