{"id":16105069,"url":"https://github.com/uriyyo/typed-undefined","last_synced_at":"2025-03-18T08:31:38.972Z","repository":{"id":42210417,"uuid":"338034507","full_name":"uriyyo/typed-undefined","owner":"uriyyo","description":"🐒 smth like JS undefined but in Python","archived":false,"fork":false,"pushed_at":"2022-04-10T08:42:32.000Z","size":87,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T18:21:21.010Z","etag":null,"topics":["python","python-typing","python-utilities","typing"],"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/uriyyo.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}},"created_at":"2021-02-11T13:19:15.000Z","updated_at":"2024-01-02T15:59:05.000Z","dependencies_parsed_at":"2022-08-12T09:41:33.897Z","dependency_job_id":null,"html_url":"https://github.com/uriyyo/typed-undefined","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriyyo%2Ftyped-undefined","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriyyo%2Ftyped-undefined/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriyyo%2Ftyped-undefined/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uriyyo%2Ftyped-undefined/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uriyyo","download_url":"https://codeload.github.com/uriyyo/typed-undefined/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244184116,"owners_count":20412157,"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","python-typing","python-utilities","typing"],"created_at":"2024-10-09T19:08:20.321Z","updated_at":"2025-03-18T08:31:38.564Z","avatar_url":"https://github.com/uriyyo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typed Undefined\n\nWhen `None` is not valid default value you can always use `undefined`.\n\n```python\nfrom undefined import Undefined, undefined, resolve\n\n\ndef foo(bar: Undefined[int] = undefined) -\u003e int:\n    return resolve(undefined, 10)\n\n\nfoo(1)  # ok\nfoo(1.0)  # error\n\na: Undefined[int] = 1  # ok\nb: Undefined[int] = 0.5  # error\n```\n\n## mypy integration\n\nYou should add `undefined_mypy` to list of mypy plugins:\n\n```buildoutcfg\n[mypy]\nplugins = undefined.mypy\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furiyyo%2Ftyped-undefined","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furiyyo%2Ftyped-undefined","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furiyyo%2Ftyped-undefined/lists"}