{"id":46714,"library":"types-tornado","title":"Types for Tornado","description":"Third-party stubs for the Tornado web framework, providing type hints for static analysis. Current version 5.1.1, sourced from typeshed. Updated irregularly alongside typeshed releases.","status":"active","version":"5.1.1","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["tornado","typeshed","stubs","typing"],"install":[{"cmd":"pip install types-tornado","lang":"bash","label":"pip"}],"dependencies":[{"reason":"Runtime dependency being typed","package":"tornado","optional":false}],"imports":[{"wrong":"from tornado import ...","symbol":"tornado-python2-stubs","correct":"import tornado-python2-stubs"}],"quickstart":{"code":"from tornado import web, ioloop\n\nclass MainHandler(web.RequestHandler):\n    def get(self):\n        self.write(\"Hello, world\")\n\nif __name__ == \"__main__\":\n    app = web.Application([(r\"/\", MainHandler)])\n    app.listen(8888)\n    ioloop.IOLoop.current().start()","lang":"python","description":"Run a basic Tornado app with type stubs enabled. Install types-tornado to get IDE hints."},"warnings":[{"fix":"Remove any 'import types_tornado' statements.","message":"types-tornado is not imported; it provides stubs automatically once installed. Do not add 'import types_tornado' to your code.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Tornado to 6.4+ and consider removing types-tornado if built-in stubs suffice.","message":"Tornado 6.4+ includes inline type hints; types-tornado may become unnecessary. Check compatibility.","severity":"deprecated","affected_versions":">=5.1"}],"env_vars":null,"search_vec":"'5.1.1':21 'alongsid':27 'analysi':18 'current':19 'framework':12 'hint':15 'irregular':26 'parti':6 'provid':13 'releas':29 'sourc':22 'static':17 'stub':7,32 'third':5 'third-parti':4 'tornado':3,10,30 'type':1,14,33 'typesh':24,28,31 'updat':25 'version':20 'web':11","created_at":"2026-06-07T13:01:15.853995+00:00","updated_at":"2026-06-07T13:01:15.853995+00:00","problems":{"verify_error":"File \"<string>\", line 1\n    import tornado-python2-stubs\n                  ^\nSyntaxError: invalid syntax"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/python/typeshed","github":"https://github.com/python/typeshed","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["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}}