
    i                     N    d dl Zd dlmc mZ d dlmZ dad Z	dee
ef   de
fdZy)    N)Unionc                     t         8t        | j                  d            }|rddl}|a t         S ddl}|j                  a t         S )z
    Import and return the actual "mock" module. By default this is
    "unittest.mock", but the user can force to always use "mock" using
    the mock_use_standalone_module ini option.
    Nmock_use_standalone_moduler   )_mock_moduleparse_ini_booleangetinimockunittest.mock)configuse_standalone_moduler	   unittests       J/home/work/apex_v16/venv/lib/python3.12/site-packages/pytest_mock/_util.pyget_mock_moduler      sK      1MM67!
 !L 	 !#==L    valuereturnc                     t        | t              r| S | j                         dk(  ry| j                         dk(  ryt        d| z        )NtrueTfalseFzunknown string for bool: %r)
isinstanceboollower
ValueError)r   s    r   r   r      sD    %{{}{{}
2U:
;;r   )builtins@py_builtins_pytest.assertion.rewrite	assertionrewrite
@pytest_artypingr   r   r   r   strr    r   r   <module>r#      s3       .<U49- <$ <r   