{"id":15569597,"url":"https://github.com/patrick91/mypy-lazy-types-example","last_synced_at":"2025-03-01T02:21:22.730Z","repository":{"id":141354692,"uuid":"282173075","full_name":"patrick91/mypy-lazy-types-example","owner":"patrick91","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-24T09:08:16.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T03:33:42.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrick91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-24T09:03:47.000Z","updated_at":"2020-07-24T09:08:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f5b57be-dc98-4f83-aeb5-ab8a38a61f5b","html_url":"https://github.com/patrick91/mypy-lazy-types-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fmypy-lazy-types-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fmypy-lazy-types-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fmypy-lazy-types-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick91%2Fmypy-lazy-types-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick91","download_url":"https://codeload.github.com/patrick91/mypy-lazy-types-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241305738,"owners_count":19941198,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T17:33:37.877Z","updated_at":"2025-03-01T02:21:22.710Z","avatar_url":"https://github.com/patrick91.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of using Annotated to fetch the actual type at runtime\n\n## Installation\n\n```sh\npoetry install\n```\n\n## Python\n\n```sh\npoetry run python main.py\n```\n\nResult (correct):\n\n```\n\u003capp.type_a.TypeA object at 0x1055125b0\u003e\n\u003capp.type_a.TypeA object at 0x1054b4e50\u003e\n```\n\n## MyPy\n\n```sh\npoetry run mypy main.py\n```\n\nOutput (incorrect, or at least undesired):\n\n```\napp/type_b.py:9: error: Name 'app' is not defined\nFound 1 error in 1 file (checked 1 source file)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fmypy-lazy-types-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick91%2Fmypy-lazy-types-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick91%2Fmypy-lazy-types-example/lists"}