{"id":24054830,"url":"https://github.com/lingfromsh/python-type-check","last_synced_at":"2026-06-10T13:31:43.063Z","repository":{"id":191147324,"uuid":"238467277","full_name":"lingfromSh/python-type-check","owner":"lingfromSh","description":"Python 的自动类型检查","archived":false,"fork":false,"pushed_at":"2020-02-11T11:02:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T22:03:12.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lingfromSh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-05T14:18:05.000Z","updated_at":"2020-02-11T11:02:57.000Z","dependencies_parsed_at":"2023-08-28T11:13:44.502Z","dependency_job_id":null,"html_url":"https://github.com/lingfromSh/python-type-check","commit_stats":null,"previous_names":["lingfromsh/python-type-check"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lingfromSh/python-type-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lingfromSh%2Fpython-type-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lingfromSh%2Fpython-type-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lingfromSh%2Fpython-type-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lingfromSh%2Fpython-type-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lingfromSh","download_url":"https://codeload.github.com/lingfromSh/python-type-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lingfromSh%2Fpython-type-check/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34155422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-09T03:50:43.868Z","updated_at":"2026-06-10T13:31:43.044Z","avatar_url":"https://github.com/lingfromSh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python-Type-Check\n\u003e 由于python是动态语言的原因，类型检查是不被提供的。但是平时大多时候还是需要确保参数类型的。\n\n## 目前功能\n- 对于str,int,list,tuple等一般传统类型和一般的_GenericAlias类型检查自动支持\n- 支持typing.Union类型的自动类型检查\n\n## 目前问题\n- 对于typing.AnyStr,typing.SupportsInt等类型不支持\n\n## 快速上手\n直接引入,作需要提供类型检查的装饰器即可。\n\n```python\nimport type_check\nimport typing\n\n@type_check\ndef foo(a:int,b:typing.List)-\u003etyping.Tuple:\n    return a, b\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flingfromsh%2Fpython-type-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flingfromsh%2Fpython-type-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flingfromsh%2Fpython-type-check/lists"}