:calls: `GET /users/{username}/gists `_
(self, since: Opt[datetime] = NotSet)
| 451 | return github.PaginatedList.PaginatedList(NamedUser, self._requester, f"{self.url}/following", None) |
| 452 | |
| 453 | def get_gists(self, since: Opt[datetime] = NotSet) -> PaginatedList[Gist]: |
| 454 | """ |
| 455 | :calls: `GET /users/{username}/gists <https://docs.github.com/en/rest/reference/gists>`_ |
| 456 | """ |
| 457 | assert since is NotSet or isinstance(since, datetime), since |
| 458 | url_parameters = dict() |
| 459 | if is_defined(since): |
| 460 | url_parameters["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ") |
| 461 | return github.PaginatedList.PaginatedList( |
| 462 | github.Gist.Gist, self._requester, f"{self.url}/gists", url_parameters |
| 463 | ) |
| 464 | |
| 465 | def get_keys(self) -> PaginatedList[UserKey]: |
| 466 | """ |
nothing calls this directly
no test coverage detected