{"id":20603527,"url":"https://github.com/galacticdynamics/is_annotated","last_synced_at":"2025-04-15T02:01:45.995Z","repository":{"id":255044635,"uuid":"848393387","full_name":"GalacticDynamics/is_annotated","owner":"GalacticDynamics","description":"Check if a type hint is an `Annotated` type","archived":false,"fork":false,"pushed_at":"2025-04-09T00:21:54.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T01:25:19.604Z","etag":null,"topics":["python-typing"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/is-annotated","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/GalacticDynamics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","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":"2024-08-27T17:18:13.000Z","updated_at":"2025-04-09T00:21:57.000Z","dependencies_parsed_at":"2024-08-27T18:23:01.047Z","dependency_job_id":"13768b88-5348-4bcb-9527-5a458356507f","html_url":"https://github.com/GalacticDynamics/is_annotated","commit_stats":null,"previous_names":["galacticdynamics/is_annotated"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fis_annotated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fis_annotated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fis_annotated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GalacticDynamics%2Fis_annotated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GalacticDynamics","download_url":"https://codeload.github.com/GalacticDynamics/is_annotated/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991546,"owners_count":21194894,"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":["python-typing"],"created_at":"2024-11-16T09:17:39.888Z","updated_at":"2025-04-15T02:01:45.972Z","avatar_url":"https://github.com/GalacticDynamics.png","language":"Python","readme":"\u003ch1 align='center'\u003e \u003ccode\u003eis_annotated\u003c/code\u003e \u003c/h1\u003e\n\u003ch2 align=\"center\"\u003eCheck if an object is an \u003ccode\u003eAnnotated\u003c/code\u003e type.\u003c/h2\u003e\n\nThis is a micro-package, containing the single function `isannotated` to check\nif a type hint is an `Annotated` type. `Annotated` objects can't be checked by\nnormal `isinstance` checks.\n\n## Installation\n\n[![PyPI platforms][pypi-platforms]][pypi-link]\n[![PyPI version][pypi-version]][pypi-link]\n\n```bash\npip install is_annotated\n```\n\n## Documentation\n\n[![Actions Status][actions-badge]][actions-link]\n\n```python\nfrom typing import Annotated\nfrom is_annotated import isannotated\n\nprint(isannotated(1))\n# False\n\nprint(isannotated(int))\n# False\n\nprint(isannotated(Annotated[int, \"1\"]))\n# True\n```\n\n\u003c!-- prettier-ignore-start --\u003e\n[actions-badge]:            https://github.com/GalacticDynamics/is_annotated/workflows/CI/badge.svg\n[actions-link]:             https://github.com/GalacticDynamics/is_annotated/actions\n[conda-badge]:              https://img.shields.io/conda/vn/conda-forge/is_annotated\n[conda-link]:               https://github.com/conda-forge/is_annotated-feedstock\n[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions\u0026message=Ask\u0026color=blue\u0026logo=github\n[github-discussions-link]:  https://github.com/GalacticDynamics/is_annotated/discussions\n[pypi-link]:                https://pypi.org/project/is_annotated/\n[pypi-platforms]:           https://img.shields.io/pypi/pyversions/is_annotated\n[pypi-version]:             https://img.shields.io/pypi/v/is_annotated\n\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalacticdynamics%2Fis_annotated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalacticdynamics%2Fis_annotated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalacticdynamics%2Fis_annotated/lists"}