Skip to content

Commit

Permalink
chore: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Feb 11, 2025
1 parent dbba9c6 commit 35c6f8e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/githarbor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@
__version__ = "0.4.5"

__all__ = [
"AuthenticationError",
# Base
"BaseRepository",
# Models
"Branch",
"Comment",
"Commit",
# Exceptions
"GitHarborError",
"Issue",
"Label",
"OperationNotAllowedError",
"ProviderNotConfiguredError",
"PullRequest",
"RateLimitError",
"Release",
"RepositoryNotFoundError",
"ResourceNotFoundError",
"User",
"Workflow",
"WorkflowRun",
# Exceptions
"GitHarborError",
"RepositoryNotFoundError",
"AuthenticationError",
"ResourceNotFoundError",
"OperationNotAllowedError",
"ProviderNotConfiguredError",
"RateLimitError",
# Factory
"create_repository",
]
2 changes: 1 addition & 1 deletion src/githarbor/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# from githarbor.providers.bitbucketrepository import BitbucketRepository

__all__ = [
"AzureRepository",
"GitHubRepository",
"GitLabRepository",
"GiteaRepository",
"AzureRepository",
# "BitbucketRepository",
]
4 changes: 2 additions & 2 deletions src/githarbor/providers/gitearepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ def list_releases(
return [
giteatools.create_release_model(release)
for release in results
if (release.draft and include_drafts or not release.draft)
and (release.prerelease and include_prereleases or not release.prerelease)
if ((release.draft and include_drafts) or not release.draft)
and ((release.prerelease and include_prereleases) or not release.prerelease)
]

@giteatools.handle_api_errors("Failed to get release")
Expand Down

0 comments on commit 35c6f8e

Please sign in to comment.