File: //usr/local/lib/python3.10/dist-packages/numpy/f2py/__pycache__/common_rules.cpython-310.pyc
o
���g � @ sp d Z ddlmZ ejZddlmZmZmZm Z m
Z
mZ ddlmZ ddlm
Z
ddlmZ ddd�Zd d
� ZdS )
a5
Build common block mechanism for f2py2e.
Copyright 1999 -- 2011 Pearu Peterson all rights reserved.
Copyright 2011 -- present NumPy Developers.
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
� )�__version__)�hasbody� hascommon�hasnote�
isintent_hide�outmess�getuseblocks)� capi_maps)� func2subr)� rmbadnamec
s� g }t � �r#� d �� D ]\}}� fdd�|D �}|�|||f� qnt� �r5� d D ] }|t|d� }q+|rTg }g }|D ]} | d |vrQ|�| d � |�| � q=|S |S )N�commonc s i | ] }|� d | �qS )�vars� )�.0�v��blockr �B/usr/local/lib/python3.10/dist-packages/numpy/f2py/common_rules.py�
<dictcomp> s z$findcommonblocks.<locals>.<dictcomp>�body� )r �items�appendr �findcommonblocks)
r �top�ret�key�value�vars_�b�tret�names�tr r r r s&