{"id":23181,"library":"types-wtforms","title":"types-wtforms","description":"Typing stubs for WTForms, providing type hints for the WTForms library. Current version: 3.2.1.20260408. Release cadence tracks CPython typeshed updates.","status":"active","version":"3.2.1.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["typing-stubs","wtforms","type-hints","typeshed"],"install":[{"cmd":"pip install types-wtforms","lang":"bash","label":"install types-wtforms"}],"dependencies":[{"reason":"Stubs are type hints for WTForms; runtime depends on actual WTForms.","package":"WTForms","optional":false},{"reason":"Often used together for type checking.","package":"mypy","optional":true},{"reason":"Alternative type checker.","package":"pyright","optional":true}],"imports":[{"wrong":"from wtforms import Form","symbol":"Form","correct":"from wtforms_stubs import Form"}],"quickstart":{"code":"from wtforms import Form, StringField, validators\n\nclass MyForm(Form):\n    name = StringField('Name', [validators.DataRequired()])\n\nform = MyForm(name='test')\nprint(form.name.data)","lang":"python","description":"Basic form definition using WTForms stubs."},"warnings":[{"fix":"pip install wtforms types-wtforms","message":"types-wtforms only provides stubs for type checking; you must also install wtforms for runtime.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure wtforms version matches the stub major.minor version.","message":"Stubs may be incomplete or have mismatched versions. The stub version (3.2.1.20260408) corresponds to WTForms version 3.2.1.","severity":"gotcha","affected_versions":">=3.2.1"}],"env_vars":null,"search_vec":"'3.2.1.20260408':17 'cadenc':19 'cpython':21 'current':15 'hint':10,30 'librari':14 'provid':8 'releas':18 'stub':5,26 'track':20 'type':2,4,9,25,29 'type-hint':28 'types-wtform':1 'typesh':22,31 'typing-stub':24 'updat':23 'version':16 'wtform':3,7,13,27","created_at":"2026-05-01T06:02:50.942843+00:00","updated_at":"2026-05-01T06:02:50.942843+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'wtforms_stubs'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"3.2.1.20260518","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/WTForms.md","pypi":"https://pypi.org/project/types-wtforms/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["type-stubs","web-framework","serialization"],"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}}