{"id":24770,"library":"types-invoke","title":"Typing stubs for invoke","description":"Unofficial typing stubs for the invoke library, provided by typeshed. Version 2.0.0.10 supports Python 3.7+. These stubs allow type checkers to validate code using invoke, but they may lag behind the invoke library itself.","status":"active","version":"2.0.0.10","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["types","stubs","invoke","typing"],"install":[{"cmd":"pip install types-invoke","lang":"bash","label":"pip install"}],"dependencies":[{"reason":"Runtime dependency; stubs are used alongside invoke","package":"invoke","optional":false}],"imports":[{"wrong":"from invoke import run","symbol":"run","correct":"from invoke_stubs import run"}],"quickstart":{"code":"from invoke import run\nresult = run('echo hello', hide=True)\nprint(result.stdout)","lang":"python","description":"Use invoke's run function with type stubs enabled."},"warnings":[{"fix":"Consider using `pip install invoke[types]` if available in the future, or rely on inline type hints.","message":"types-invoke is provided by typeshed and may be removed or replaced by stubs in the invoke package itself.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Add `# type: ignore` comments or write custom stubs for unsupported features.","message":"Stubs may not cover all invoke features; some advanced patterns may not type-check correctly.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to exact version: `types-invoke==2.0.0.10`.","message":"Version 2.0.0.10 is not a standard semantic version; it follows typeshed's calendar versioning. This may confuse dependency resolvers.","severity":"breaking","affected_versions":"2.0.0.10"}],"env_vars":null,"search_vec":"'2.0.0.10':16 '3.7':19 'allow':22 'behind':34 'checker':24 'code':27 'invok':4,10,29,36,41 'lag':33 'librari':11,37 'may':32 'provid':12 'python':18 'stub':2,7,21,40 'support':17 'type':1,6,23,39,42 'typesh':14 'unoffici':5 'use':28 'valid':26 'version':15","created_at":"2026-05-01T08:14:50.109951+00:00","updated_at":"2026-05-01T08:14:50.109951+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'invoke_stubs'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.0.0.10","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/typeshed-internal/stub_uploader","docs":null,"changelog":"https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/invoke.md","pypi":"https://pypi.org/project/types-invoke/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}