{"id":20969,"library":"autotyping","title":"autotyping","description":"A tool for auto-adding simple type annotations to Python code. Current version 24.9.0, released September 2024. Follows a semi-annual release cadence.","status":"active","version":"24.9.0","language":"python","source_language":"en","source_url":"https://github.com/JelleZijlstra/autotyping","tags":["type-annotations","linter","python-typing","automatic-typing"],"install":[{"cmd":"pip install autotyping","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Used for parsing and transforming Python code","package":"libcst","optional":false},{"reason":"Used for type inference when --pyanalyze-report is specified","package":"pyanalyze","optional":true}],"imports":[{"wrong":"from autotyping import Autotyping","symbol":"Autotyping","correct":"import autotyping"}],"quickstart":{"code":"# Basic usage on a single file\nimport subprocess\nsubprocess.run([\"autotyping\", \"my_file.py\"], check=True)\n\n# Or run as a module\n# python -m autotyping my_file.py\n","lang":"python","description":"Invoke autotyping via CLI or subprocess. The tool adds type annotations to functions and methods based on common patterns."},"warnings":[{"fix":"Update Python to 3.8 or later and upgrade autotyping to 24.3.0+.","message":"Version 24.3.0 dropped support for Python 3.7. Upgrade to Python 3.8+.","severity":"breaking","affected_versions":"<=23.3.0"},{"fix":"Remove arguments after --safe or --aggressive. Use --safe on its own.","message":"The --safe and --aggressive flags in version 23.2.0 were changed to not take ignored arguments. Previously they accepted --safe=true, now just --safe.","severity":"gotcha","affected_versions":">=23.2.0"},{"fix":"Update to 22.9.0+ to avoid adding None to abstract methods.","message":"Autotyping may add None return type to methods marked with @abstractmethod in older versions. Fixed in 22.9.0.","severity":"gotcha","affected_versions":"<22.9.0"}],"env_vars":null,"search_vec":"'2024':19 '24.9.0':16 'ad':7 'annot':10,29 'annual':24 'auto':6 'auto-ad':5 'automat':35 'automatic-typ':34 'autotyp':1 'cadenc':26 'code':13 'current':14 'follow':20 'linter':30 'python':12,32 'python-typ':31 'releas':17,25 'semi':23 'semi-annu':22 'septemb':18 'simpl':8 'tool':3 'type':9,28,33,36 'type-annot':27 'version':15","created_at":"2026-04-27T16:57:23.340524+00:00","updated_at":"2026-04-27T16:57:23.340524+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"24.9.0","cli_name":"autotyping","cli_version":"usage: autotyping [-h] [--annotate-optional [ANNOTATE_OPTIONAL ...]]","type":"library","homepage":null,"github":"https://github.com/JelleZijlstra/autotyping","docs":null,"changelog":null,"pypi":"https://pypi.org/project/autotyping/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}