Add support for new RepositoryAdvisories API 🎉 (#2483)

This commit is contained in:
Jonathan Leitschuh
2023-06-09 13:42:18 -04:00
committed by GitHub
parent 84912a675c
commit daf62bd461
23 changed files with 2002 additions and 21 deletions
+13
View File
@@ -10,7 +10,15 @@
# Copyright 2016 Jannis Gebauer <ja.geb@me.com> #
# Copyright 2016 Peter Buckley <dx-pbuckley@users.noreply.github.com> #
# Copyright 2016 Sam Corbett <sam.corbett@cloudsoftcorp.com> #
# Copyright 2018 Shubham Singh <41840111+singh811@users.noreply.github.com> #
# Copyright 2018 h.shi <10385628+AnYeMoWang@users.noreply.github.com> #
# Copyright 2018 sfdye <tsfdye@gmail.com> #
# Copyright 2019 Adam Baratz <adam.baratz@gmail.com> #
# Copyright 2019 Steve Kowalik <steven@wedontsleep.org> #
# Copyright 2019 Wan Liuyang <tsfdye@gmail.com> #
# Copyright 2020 Steve Kowalik <steven@wedontsleep.org> #
# Copyright 2021 Steve Kowalik <steven@wedontsleep.org> #
# Copyright 2023 Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com> #
# #
# This file is part of PyGithub. #
# http://pygithub.readthedocs.io/ #
@@ -31,6 +39,7 @@
################################################################################
import datetime
import typing
from operator import itemgetter
from . import Consts, GithubException
@@ -45,6 +54,10 @@ class _NotSetType:
NotSet = _NotSetType()
T = typing.TypeVar("T")
OptionallySet = typing.Union[T, _NotSetType]
class _ValuedAttribute:
def __init__(self, value):