예제 #1
0
파일: typing.py 프로젝트: spookybear0/gd.py
    "TypeVar",
    "TYPE_CHECKING",
    "no_type_check",
    "overload",
)


def __repr__(forward_ref):
    return str(forward_ref.__forward_arg__)


setattr(ref, "__repr__", __repr__)

Function = Callable[..., Any]

AbstractEntity = ref("gd.abstractentity.AbstractEntity")
AbstractUser = ref("gd.abstractuser.AbstractUser")
ArtistInfo = ref("gd.song.ArtistInfo")
Author = ref("gd.song.Author")
Buffer = ref("gd.memory.interface.Buffer")
LevelRecord = ref("gd.abstractuser.LevelRecord")
Client = ref("gd.client.Client")
Color = ref("gd.colors.Color")
Comment = ref("gd.comment.Comment")
FriendRequest = ref("gd.friend_request.FriendRequest")
Guidelines = ref("gd.api.guidelines.Guidelines")
HTMLElement = ref("lxml.html.HtmlElement")
XMLElement = ref("xml.etree.ElementTree.Element")
IconSet = ref("gd.iconset.IconSet")
Level = ref("gd.level.Level")
Gauntlet = ref("gd.level_packs.Gauntlet")
예제 #2
0
파일: typing.py 프로젝트: FireCubez/gd.py
    'AsyncIterator',
    'Type',
    'TypeVar',
    'TYPE_CHECKING',
    'no_type_check',
    'overload',
)


def __repr__(forward_ref):
    return str(forward_ref.__forward_arg__)


setattr(ref, '__repr__', __repr__)

AbstractEntity = ref('gd.abstractentity.AbstractEntity')
AbstractUser = ref('gd.abstractuser.AbstractUser')
LevelRecord = ref('gd.abstractuser.LevelRecord')
Client = ref('gd.client.Client')
Color = ref('gd.colors.Color')
Comment = ref('gd.comment.Comment')
FriendRequest = ref('gd.friend_request.FriendRequest')
IconSet = ref('gd.iconset.IconSet')
Level = ref('gd.level.Level')
Gauntlet = ref('gd.level_packs.Gauntlet')
MapPack = ref('gd.level_packs.MapPack')
Message = ref('gd.message.Message')
Song = ref('gd.song.Song')
UserStats = ref('gd.user.UserStats')
User = ref('gd.user.User')
NEnum = ref('gd.utils.enums.NEnum')