MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / findMissingAttributes

Method findMissingAttributes

tests/ExposeAllAttributes.py:148–157  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

146 self.assertEqual(sum(len(attrs) for attrs in missingAttributes.values()), 0)
147
148 def findMissingAttributes(self, obj):
149 if isinstance(obj, github.GithubObject.CompletableGithubObject):
150 obj.update()
151 className = obj.__class__.__name__
152 missingAttributes = {}
153 for attribute in obj.raw_data:
154 if attribute != "_links":
155 if not hasattr(obj, attribute):
156 missingAttributes[attribute] = obj.raw_data[attribute]
157 return (className, missingAttributes)
158
159 def gatherMissingAttributes(self, objs):
160 allMissingAttributes = dict()

Callers 1

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected