+ python scripts/openapi.py --dry-run create method github openapi.spec.json openapi.index Repository get_stargazers get '/repos/{owner}/{repo}/stargazers'
Using spec openapi.spec.json
Creating method github.Repository.Repository.get_stargazers in github/Repository.py
There is no $ref and no type in schema: {"anyOf": [{"type": "array", "items": {"$ref": "#/components/schemas/simple-user"}}, {"type": "array", "items": {"$ref": "#/components/schemas/stargazer"}}]}
Diff:
--- 
+++ 
@@ -642,6 +642,12 @@
     def web_commit_signoff_required(self) -> bool:
         self._completeIfNotSet(self._web_commit_signoff_required)
         return self._web_commit_signoff_required.value
+    
+    def get_stargazers(self) -> None:
+        """
+        :calls: `GET /repos/{owner}/{repo}/stargazers <https://docs.github.com/rest/activity/starring#list-stargazers>`_
+        """
+        headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/stargazers")
 
     def _useAttributes(self, attributes: dict[str, Any]) -> None:
         super()._useAttributes(attributes)

+ python scripts/openapi.py create method github openapi.spec.json openapi.index Repository get_stargazers get '/repos/{owner}/{repo}/stargazers'
Using spec openapi.spec.json
Creating method github.Repository.Repository.get_stargazers in github/Repository.py
There is no $ref and no type in schema: {"anyOf": [{"type": "array", "items": {"$ref": "#/components/schemas/simple-user"}}, {"type": "array", "items": {"$ref": "#/components/schemas/stargazer"}}]}
Updating index
Indexing 11 Python files
Indexed 21 classes
Indexed 5 paths
Indexed 39 schemas
Indexing OpenAPI spec
Using spec openapi.spec.json
Applying API schemas to PyGithub class Repository
Applying spec openapi.spec.json to github.Repository.Repository (github/Repository.py)
- Updating method get_stargazers
Class Repository changed
+ python scripts/openapi.py index github openapi.spec.json openapi.index
Indexing 11 Python files
Indexed 21 classes
Indexed 5 paths
Indexed 39 schemas
Indexing OpenAPI spec
