Enable flake8-annotations linting rules (#267)
See https://docs.astral.sh/ruff/rules/#flake8-annotations-ann.
This commit is contained in:
@@ -13,7 +13,7 @@ Note: GraphQL API and GitHub CLI are used because it's simpler: no need to manag
|
||||
METHOD = "github_releases"
|
||||
|
||||
|
||||
def fetch_releases(repo_id):
|
||||
def fetch_releases(repo_id: str) -> list[dict]:
|
||||
logging.info(f"fetching {repo_id} GitHub releases")
|
||||
(owner, repo) = repo_id.split('/')
|
||||
child = subprocess.run("""gh api graphql --paginate -f query='
|
||||
|
||||
Reference in New Issue
Block a user