{"id":16168592,"url":"https://github.com/thatxliner/bs4-stubs","last_synced_at":"2025-03-18T23:30:59.658Z","repository":{"id":48073367,"uuid":"342688784","full_name":"ThatXliner/bs4-stubs","owner":"ThatXliner","description":"Experimental type hints for BeautifulSoup","archived":false,"fork":false,"pushed_at":"2023-04-22T04:13:57.000Z","size":51,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T13:17:59.967Z","etag":null,"topics":["beautifulsoup4","mypy","mypy-stubs","python","python3","type-hints"],"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/ThatXliner.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-26T20:08:35.000Z","updated_at":"2022-01-22T04:21:11.000Z","dependencies_parsed_at":"2024-10-27T19:19:23.013Z","dependency_job_id":"a7e2480c-619a-47d2-8d53-5595da3296cf","html_url":"https://github.com/ThatXliner/bs4-stubs","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/ThatXliner%2Fbs4-stubs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThatXliner%2Fbs4-stubs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThatXliner%2Fbs4-stubs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThatXliner%2Fbs4-stubs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThatXliner","download_url":"https://codeload.github.com/ThatXliner/bs4-stubs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955712,"owners_count":20374373,"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":["beautifulsoup4","mypy","mypy-stubs","python","python3","type-hints"],"created_at":"2024-10-10T03:12:21.548Z","updated_at":"2025-03-18T23:30:59.360Z","avatar_url":"https://github.com/ThatXliner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**NOTE:** I later found out [this exists](https://github.com/python/typeshed/tree/master/stubs/beautifulsoup4). But I don't know, maybe this has something typeshed doesn't. But I recommend typeshed's version over this experiment.\n\n# bs4-stubs\n\n[PEP 484 type hint][pep484] [stubs](https://mypy.readthedocs.io/en/latest/stubs.html) for [BeautifulSoup](https://www.crummy.com/software/BeautifulSoup/) originally generated with [stubgen](stubgen). This is mainly for people who use tools like [MyPy](http://github.com/python/mypy).\n\n# Why\n\nI use BeautifulSoup. I think it's beautiful :ok_hand: :sparkles:.\n\nIt's just that mypy gets crazy when I use it (complaining about [Any](https://docs.python.org/3/library/typing.html#typing.Any)). I created this because I couldn't find anything. Some guy wrote [an article explaining BeautifulSoup types](https://skeptric.com/typing-beautiful-soup/) which I will use.\n\n[pep484]: https://www.python.org/dev/peps/pep-0484/\n[stubgen]: https://mypy.readthedocs.io/en/latest/stubgen.html\n\n## How to contribute\n\nPlease contibute! Mypy's stubgen is flawed and many type annotations needs fixing. The easiest way (as I can think of) is to\n - Run `mypy strict bs4-stubs` on this repo and fix the errors\n - Contribute to this repo when a type annotation needs fixing (e.g. object `x` needs proper type annotation because mypy is ruining my project)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatxliner%2Fbs4-stubs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatxliner%2Fbs4-stubs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatxliner%2Fbs4-stubs/lists"}