Fixed circular import issue preventing tests from running.
@@ -24,7 +24,7 @@ import typing
import aiohttp
-import hikari
+from hikari import _about
# Headers.
ACCEPT_HEADER: typing.Final[str] = "Accept"
@@ -57,10 +57,10 @@ MILLISECOND_PRECISION: typing.Final[str] = "millisecond"
# User-agent info.
AIOHTTP_VERSION: typing.Final[str] = f"aiohttp {aiohttp.__version__}"
-LIBRARY_VERSION: typing.Final[str] = f"hikari {hikari.__version__}"
+LIBRARY_VERSION: typing.Final[str] = f"hikari {_about.__version__}"
SYSTEM_TYPE: typing.Final[str] = f"{platform.system()} {platform.architecture()[0]}"
HTTP_USER_AGENT: typing.Final[str] = (
- f"DiscordBot ({hikari.__url__}, {hikari.__version__}) {hikari.__author__} "
+ f"DiscordBot ({_about.__url__}, {_about.__version__}) {_about.__author__} "
f"Aiohttp/{aiohttp.__version__} "
f"{platform.python_implementation()}/{platform.python_version()} {SYSTEM_TYPE}"
)
