{"id":26168720,"url":"https://github.com/ofekshilon/flake8_typing_imports","last_synced_at":"2026-04-24T13:32:28.845Z","repository":{"id":281380282,"uuid":"945101263","full_name":"OfekShilon/flake8_typing_imports","owner":"OfekShilon","description":"Flake8 extension that alerts on imports used only for typing","archived":false,"fork":false,"pushed_at":"2025-03-08T20:16:13.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T01:56:34.500Z","etag":null,"topics":["flake8-extension","flake8-plugin"],"latest_commit_sha":null,"homepage":"","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/OfekShilon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-08T16:59:35.000Z","updated_at":"2025-09-17T06:28:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"14bce258-3006-4825-8d83-945f3bce9dbb","html_url":"https://github.com/OfekShilon/flake8_typing_imports","commit_stats":null,"previous_names":["ofekshilon/flake8_typing_imports"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OfekShilon/flake8_typing_imports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfekShilon%2Fflake8_typing_imports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfekShilon%2Fflake8_typing_imports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfekShilon%2Fflake8_typing_imports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfekShilon%2Fflake8_typing_imports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OfekShilon","download_url":"https://codeload.github.com/OfekShilon/flake8_typing_imports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OfekShilon%2Fflake8_typing_imports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32225741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flake8-extension","flake8-plugin"],"created_at":"2025-03-11T18:11:08.915Z","updated_at":"2026-04-24T13:32:28.840Z","avatar_url":"https://github.com/OfekShilon.png","language":"Python","readme":"# flake8_typing_imports\n\nWhen an import is added only to satisfy static-analysis tools like `mypy`, `pyright` or `pyre`, it risks incurring redundant runtime overhead. The preferrable way to code such an import is:\n\n```python\nfrom __future__ import annotations\nfrom typing import TYPE_CHECKING\n...\n\nif TYPE_CHECKING:\n  from my.module import MyAwesomeType\n\n\ndef func(input: MyAwesomeType):\n  ...\n```\n\nThis project is a flake8 extension that alerts on such imports, used only for typing, and suggests moving them to a `TYPE_CHECKING` block.\n\n\nThis won't be uploaded to PyPI until it gathers some more mileage. In the mean time, to use it:\n1. Clone the repo,\n2. From the repo directory:\n```\n$ pip install .\n```\n3. Finally, run flake8 in your preferred way, the simplest being:\n```\n$ flake8 \u003cpath\u003e \n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofekshilon%2Fflake8_typing_imports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofekshilon%2Fflake8_typing_imports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofekshilon%2Fflake8_typing_imports/lists"}