m(O; R d Z ddlmZmZmZmZmZ dadad dZ d Z d dZd dZd Z dS ) z>Implementation of the ipaddres-based network types adaptation )new_typenew_array_type register_typeregister_adapterQuotedStringNc ddl a t t at D ]}t || t j t j t j t j fD ]}t |t dS )a Register conversion support between `ipaddress` objects and `network types`__. :param conn_or_curs: the scope where to register the type casters. If `!None` register them globally. After the function is called, PostgreSQL :sql:`inet` values will be converted into `~ipaddress.IPv4Interface` or `~ipaddress.IPv6Interface` objects, :sql:`cidr` values into into `~ipaddress.IPv4Network` or `~ipaddress.IPv6Network`. .. __: https://www.postgresql.org/docs/current/static/datatype-net-types.html r N) ipaddress_casters _make_castersr IPv4Interface IPv6InterfaceIPv4NetworkIPv6Networkr adapt_ipaddress)conn_or_curscts g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/psycopg2/_ipaddress.pyregister_ipaddressr % s ?? ' 'a&&&&%y'>#Y%:<