"""Make plugin compatible with pytest-xdist."""

import pytest
from _pytest.nodes import Node


class XdistHooks:
    """Hooks for xdist"""

    @staticmethod
    @pytest.hookimpl(trylast=True)
    def pytest_configure_node(node: Node):
        """This is called in case of using xdist to pass data to worker nodes."""
        node.workerinput["options"] = {  # type: ignore
            "dist": node.config.option.dist,  # type: ignore
            "numprocesses": node.config.option.numprocesses,  # type: ignore
        }

7fc02288bf37cff69b3aef49f0008ad89a41c353
<mask token>


class XdistHooks:
    <mask token>
    <mask token>

<mask token>


class XdistHooks:
    <mask token>

    @staticmethod
    @pytest.hookimpl(trylast=True)
    def pytest_configure_node(node: Node):
        """This is called in case of using xdist to pass data to worker nodes."""
        node.workerinput['options'] = {'dist': node.config.option.dist,
            'numprocesses': node.config.option.numprocesses}

<mask token>


class XdistHooks:
    """Hooks for xdist"""

    @staticmethod
    @pytest.hookimpl(trylast=True)
    def pytest_configure_node(node: Node):
        """This is called in case of using xdist to pass data to worker nodes."""
        node.workerinput['options'] = {'dist': node.config.option.dist,
            'numprocesses': node.config.option.numprocesses}

<mask token>
import pytest
from _pytest.nodes import Node


class XdistHooks:
    """Hooks for xdist"""

    @staticmethod
    @pytest.hookimpl(trylast=True)
    def pytest_configure_node(node: Node):
        """This is called in case of using xdist to pass data to worker nodes."""
        node.workerinput['options'] = {'dist': node.config.option.dist,
            'numprocesses': node.config.option.numprocesses}

"""Make plugin compatible with pytest-xdist."""

import pytest
from _pytest.nodes import Node


class XdistHooks:
    """Hooks for xdist"""

    @staticmethod
    @pytest.hookimpl(trylast=True)
    def pytest_configure_node(node: Node):
        """This is called in case of using xdist to pass data to worker nodes."""
        node.workerinput["options"] = {  # type: ignore
            "dist": node.config.option.dist,  # type: ignore
            "numprocesses": node.config.option.numprocesses,  # type: ignore
        }
