+ python scripts/openapi.py --dry-run apply properties --tests --new-schemas as-dict github openapi.spec.json openapi.index Commit
Using spec openapi.spec.json
Applying API schemas to PyGithub class Commit
Applying spec openapi.spec.json to github.Commit.Commit (github/Commit.py)
Applying schema /components/schemas/commit
Diff:
--- 
+++ 
@@ -60,11 +60,13 @@
         self._comments_url: Attribute[str] = NotSet
         self._commit: Attribute[GitCommit] = NotSet
         self._committer: Attribute[NamedUser] = NotSet
+        self._files: Attribute[list[dict[str, Any]]] = NotSet
         self._html_url: Attribute[str] = NotSet
         self._message: Attribute[str] = NotSet
         self._node_id: Attribute[str] = NotSet
         self._parents: Attribute[list[Commit]] = NotSet
         self._sha: Attribute[str] = NotSet
+        self._stats: Attribute[dict[str, Any]] = NotSet
 
     def __repr__(self) -> str:
         # TODO: replace "some_attribute" with uniquely identifying attributes in the dict, then run:
@@ -96,6 +98,11 @@
         return self._committer.value
 
     @property
+    def files(self) -> list[dict[str, Any]]:
+        self._completeIfNotSet(self._files)
+        return self._files.value
+
+    @property
     def html_url(self) -> str:
         self._completeIfNotSet(self._html_url)
         return self._html_url.value
@@ -120,6 +127,11 @@
         self._completeIfNotSet(self._sha)
         return self._sha.value
 
+    @property
+    def stats(self) -> dict[str, Any]:
+        self._completeIfNotSet(self._stats)
+        return self._stats.value
+
     def _useAttributes(self, attributes: dict[str, Any]) -> None:
         super()._useAttributes(attributes)
         if "author" in attributes:  # pragma no branch
@@ -132,6 +144,8 @@
             self._commit = self._makeClassAttribute(github.GitCommit.GitCommit, attributes["commit"])
         if "committer" in attributes:  # pragma no branch
             self._committer = self._makeClassAttribute(github.NamedUser.NamedUser, attributes["committer"])
+        if "files" in attributes:  # pragma no branch
+            self._files = self._makeListOfDictsAttribute(attributes["files"])
         if "html_url" in attributes:  # pragma no branch
             self._html_url = self._makeStringAttribute(attributes["html_url"])
         if "message" in attributes:  # pragma no branch
@@ -142,4 +156,6 @@
             self._parents = self._makeListOfClassesAttribute(github.Commit.Commit, attributes["parents"])
         if "sha" in attributes:  # pragma no branch
             self._sha = self._makeStringAttribute(attributes["sha"])
+        if "stats" in attributes:  # pragma no branch
+            self._stats = self._makeDictAttribute(attributes["stats"])
 

Diff:
--- 
+++ 
@@ -43,9 +43,11 @@
         self.assertEqual(c.comments_url, "")
         self.assertEqual(c.commit.some_attribute, "")
         self.assertEqual(c.committer.some_attribute, "")
+        self.assertEqual(c.files, "list[dict[str, Any]]")
         self.assertEqual(c.html_url, "")
         self.assertEqual(c.message, "")
         self.assertEqual(c.node_id, "")
         self.assertEqual(c.parents[0].some_attribute, "")
         self.assertEqual(c.sha, "")
+        self.assertEqual(c.stats, "dict[str, Any]")
         self.assertEqual(c.url, "")

Applying schema /components/schemas/commit/properties/parents/items
Diff:

Diff:

Applying schema /components/schemas/commit-search-result-item/properties/commit
Diff:
--- 
+++ 
@@ -65,6 +65,8 @@
         self._node_id: Attribute[str] = NotSet
         self._parents: Attribute[list[Commit]] = NotSet
         self._sha: Attribute[str] = NotSet
+        self._tree: Attribute[dict[str, Any]] = NotSet
+        self._verification: Attribute[dict[str, Any]] = NotSet
 
     def __repr__(self) -> str:
         # TODO: replace "some_attribute" with uniquely identifying attributes in the dict, then run:
@@ -120,6 +122,16 @@
         self._completeIfNotSet(self._sha)
         return self._sha.value
 
+    @property
+    def tree(self) -> dict[str, Any]:
+        self._completeIfNotSet(self._tree)
+        return self._tree.value
+
+    @property
+    def verification(self) -> dict[str, Any]:
+        self._completeIfNotSet(self._verification)
+        return self._verification.value
+
     def _useAttributes(self, attributes: dict[str, Any]) -> None:
         super()._useAttributes(attributes)
         if "author" in attributes:  # pragma no branch
@@ -142,4 +154,8 @@
             self._parents = self._makeListOfClassesAttribute(github.Commit.Commit, attributes["parents"])
         if "sha" in attributes:  # pragma no branch
             self._sha = self._makeStringAttribute(attributes["sha"])
+        if "tree" in attributes:  # pragma no branch
+            self._tree = self._makeDictAttribute(attributes["tree"])
+        if "verification" in attributes:  # pragma no branch
+            self._verification = self._makeDictAttribute(attributes["verification"])
 

Diff:
--- 
+++ 
@@ -48,4 +48,6 @@
         self.assertEqual(c.node_id, "")
         self.assertEqual(c.parents[0].some_attribute, "")
         self.assertEqual(c.sha, "")
+        self.assertEqual(c.tree, "dict[str, Any]")
         self.assertEqual(c.url, "")
+        self.assertEqual(c.verification, "dict[str, Any]")

Applying schema /components/schemas/commit-search-result-item/properties/parents/items
Diff:

Diff:

Class Commit changed
Test tests/Commit.py changed
+ python scripts/openapi.py apply properties --tests --new-schemas as-dict github openapi.spec.json openapi.index Commit
Using spec openapi.spec.json
Applying API schemas to PyGithub class Commit
Applying spec openapi.spec.json to github.Commit.Commit (github/Commit.py)
Applying schema /components/schemas/commit
Applying schema /components/schemas/commit/properties/parents/items
Applying schema /components/schemas/commit-search-result-item/properties/commit
Applying schema /components/schemas/commit-search-result-item/properties/parents/items
Class Commit changed
Test tests/Commit.py changed
+ python scripts/openapi.py index github openapi.spec.json openapi.index
Indexing 8 Python files
Indexed 17 classes
Indexed 4 paths
Indexed 22 schemas
Indexing OpenAPI spec
