a
    ên§a±  ã                   @  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u 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
   ú>lib/python3.9/site-packages/bokeh/_testing/plugins/networkx.pyr   ,   s    
r   )Ú__doc__Z
__future__r   ZloggingZ	getLoggerÚ__name__ÚlogÚtypesr   r   Zbokeh.util.dependenciesr   Ú__all__Zfixturer   r
   r
   r
   r   Ú<module>   s   
