def test_get_stub_files(): map_ = typeshed._create_stub_map( typeshed.PathInfo(TYPESHED_PYTHON3, is_third_party=False)) assert map_['functools'].path == os.path.join(TYPESHED_PYTHON3, 'functools.pyi')
def _patched_get_typeshed_directories(version_info): for path in sys_path: if "api_stubs" in path: yield typeshed.PathInfo(path, False)