U
    õÕ/e±  ã                   @  s^   d Z ddlmZ ddlZe e¡ZddlmZ ddl	Z	ddl
mZ dZe	jddœd	d
„ƒZdS )zK Provide a Pytest plugin for handling tests when networkx may be missing.

é    )ÚannotationsN)Ú
ModuleType)Úimport_optional©ÚnxzModuleType | None)Úreturnc                  C  s   t dƒ} | dkrt d¡ | S )z] A PyTest fixture that will automatically skip a test if networkx is
    not installed.

    ZnetworkxNznetworkx is not installed)r   ÚpytestÚskipr   © r
   úC/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/_testing/plugins/networkx.pyr   ,   s    
r   )Ú__doc__Ú
__future__r   ÚloggingÚ	getLoggerÚ__name__ÚlogÚtypesr   r   Zbokeh.util.dependenciesr   Ú__all__Zfixturer   r
   r
   r
   r   Ú<module>   s   
