You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds capability to configure global laziness Github objects through
`Github(lazy=…)` and `GithubIntegration(lazy=…)`. Does not add any
laziness capability to any particular Github object.
Reworks `CompletableGithubObject` to support following features:
- It fetches initial complete JSON, which allows to replace
```python
headers, data = self.__requester.requestJsonAndCheck("GET", f"/users/{login}")
return github.NamedUser.NamedUser(self.__requester, headers, data, completed=True)
```
with
```python
return github.NamedUser.NamedUser(self.__requester, url=f"/users/{login}")
```
Which allows that returned `CompletableGithubObject` to be lazy.
Removes any code related to `CompletableGithubObject` from
`NonCompletableGithubObject`.
- Which requires replacing (for `NonCompletableGithubObject` only)
```python
return github.Branch.Branch(self._requester, headers, data, completed=True)
```
for `NonCompletableGithubObject` with
```python
return github.Branch.Branch(self._requester, headers, data)
```
FixesPyGithub#2334
0 commit comments