You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim_config/typings/numpy/conftest.pyi

57 lines
1.3 KiB

"""
This type stub file was generated by pyright.
"""
import pytest
"""
Pytest configuration and fixtures for the Numpy test suite.
"""
_old_fpu_mode = ...
_collect_results = ...
_pytest_ini = ...
def pytest_configure(config): # -> None:
...
def pytest_addoption(parser): # -> None:
...
def pytest_sessionstart(session): # -> None:
...
@pytest.hookimpl()
def pytest_itemcollected(item): # -> None:
"""
Check FPU precision mode was not changed during test collection.
The clumsy way we do it here is mainly necessary because numpy
still uses yield tests, which can execute code at test collection
time.
"""
...
@pytest.fixture(scope="function", autouse=True)
def check_fpu_mode(request): # -> Generator[None, Any, None]:
"""
Check FPU precision mode was not changed during the test.
"""
...
@pytest.fixture(autouse=True)
def add_np(doctest_namespace): # -> None:
...
@pytest.fixture(autouse=True)
def env_setup(monkeypatch): # -> None:
...
@pytest.fixture(params=[True, False])
def weak_promotion(request): # -> Generator[Unknown, Any, None]:
"""
Fixture to ensure "legacy" promotion state or change it to use the new
weak promotion (plus warning). `old_promotion` should be used as a
parameter in the function.
"""
...