Skip to content

Commit

Permalink
aio.api.github(0.2.7): Add get methods to repo interface (#2317)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Oct 9, 2024
1 parent e4cc53c commit 934cccd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pypi: https://pypi.org/project/aio.api.bazel

#### [aio.api.github](aio.api.github)

version: 0.2.7.dev0
version: 0.2.7

pypi: https://pypi.org/project/aio.api.github

Expand Down
2 changes: 1 addition & 1 deletion aio.api.github/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.7-dev
0.2.7
11 changes: 11 additions & 0 deletions aio.api.github/aio/api/github/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,17 @@ async def create_release(
"""Create a release for this repo."""
raise NotImplementedError

@abstracts.interfacemethod
def getitem(self, *args, **kwargs) -> Any:
"""Call the `gidgethub.getitem` api for a repo."""
raise NotImplementedError

@abstracts.interfacemethod
def getiter(self, *args, **kwargs) -> IGithubIterator:
"""Return a `GithubIterator` wrapping `gidgethub.getiter` for a
repo."""
raise NotImplementedError

@abstracts.interfacemethod
async def highest_release(
self,
Expand Down

0 comments on commit 934cccd

Please sign in to comment.