module documentation
(source)

Undocumented

Class ​PEP561​Suite Undocumented
Function install​_package Install a package from test-data/packages/pkg/
Function parse​_mypy​_args Undocumented
Function parse​_pkgs Undocumented
Function test​_mypy​_path​_is​_respected Undocumented
Function test​_pep561 Test running mypy on files that depend on PEP 561 packages.
Function virtualenv Context manager that creates a virtualenv in a temporary directory
def install_package(pkg, python_executable=sys.executable, use_pip=True, editable=False): (source)
Install a package from test-data/packages/pkg/
Parameters
pkg:strUndocumented
python​_executable:strUndocumented
use​_pip:boolUndocumented
editable:boolUndocumented
def parse_mypy_args(line): (source)

Undocumented

Parameters
line:strUndocumented
Returns
List[str]Undocumented
def parse_pkgs(comment): (source)

Undocumented

Parameters
comment:strUndocumented
Returns
Tuple[List[str], List[str]]Undocumented
def test_mypy_path_is_respected(): (source)

Undocumented

def test_pep561(testcase): (source)
Test running mypy on files that depend on PEP 561 packages.
Parameters
testcase:DataDrivenTestCaseUndocumented
@contextmanager
def virtualenv(python_executable=sys.executable): (source)

Context manager that creates a virtualenv in a temporary directory

returns the path to the created Python executable

Parameters
python​_executable:strUndocumented
Returns
Generator[Tuple[str, str], None, None]Undocumented