# Path: src/_pytest/compat.py
# LEGACY_PATH = py.path. local
# 
# Path: src/_pytest/compat.py
# def legacy_path(path: Union[str, "os.PathLike[str]"]) -> LEGACY_PATH:
#     """Internal wrapper to prepare lazy proxies for legacy_path instances"""
#     return LEGACY_PATH(path)
# 
# Path: src/_pytest/deprecated.py
# HOOK_LEGACY_PATH_ARG = UnformattedWarning(
#     PytestRemovedIn8Warning,
#     "The ({pylib_path_arg}: py.path.local) argument is deprecated, please use ({pathlib_path_arg}: pathlib.Path)\n"
#     "see https://docs.pytest.org/en/latest/deprecations.html"
#     "#py-path-local-arguments-for-hooks-replaced-with-pathlib-path",
# )


import functools
import warnings
from pathlib import Path
from typing import Optional
from ..compat import LEGACY_PATH
from ..compat import legacy_path
from ..deprecated import HOOK_LEGACY_PATH_ARG
from _pytest.nodes import _check_path


# hookname: (Path, LEGACY_PATH)
imply_paths_hooks = {
    "pytest_ignore_collect": ("collection_path", "path"),
    "pytest_collect_file": ("file_path", "path"),

# Path: src/_pytest/compat.py
# LEGACY_PATH = py.path. local
# 
# Path: src/_pytest/compat.py
# def legacy_path(path: Union[str, "os.PathLike[str]"]) -> LEGACY_PATH:
#     """Internal wrapper to prepare lazy proxies for legacy_path instances"""
#     return LEGACY_PATH(path)
# 
# Path: src/_pytest/deprecated.py
# HOOK_LEGACY_PATH_ARG = UnformattedWarning(
#     PytestRemovedIn8Warning,
#     "The ({pylib_path_arg}: py.path.local) argument is deprecated, please use ({pathlib_path_arg}: pathlib.Path)\n"
#     "see https://docs.pytest.org/en/latest/deprecations.html"
#     "#py-path-local-arguments-for-hooks-replaced-with-pathlib-path",
# )


# Path: src/_pytest/config/compat.py
import functools
import warnings
from pathlib import Path
from typing import Optional
from ..compat import LEGACY_PATH
from ..compat import legacy_path
from ..deprecated import HOOK_LEGACY_PATH_ARG
from _pytest.nodes import _check_path



# hookname: (Path, LEGACY_PATH)
imply_paths_hooks = {
    "pytest_ignore_collect": ("collection_path", "path"),
    "pytest_collect_file": ("file_path", "path"),

    "pytest_pycollect_makemodule": ("module_path", "path"),