Maybe fix circular import? idk it's not happening locally

This commit is contained in:
object-Object 2023-09-07 21:40:34 -04:00
parent bbc16fa9ad
commit 1518757a90
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +0,0 @@
__all__ = ["generated", "resources"]
from . import generated, resources

View file

@ -1,7 +1,8 @@
from importlib.resources import Package from importlib.resources import Package
import hexdoc._export.generated
import hexdoc._export.resources
from hexdoc.__gradle_version__ import GRADLE_VERSION from hexdoc.__gradle_version__ import GRADLE_VERSION
from hexdoc._export import generated, resources
from hexdoc.plugin import ( from hexdoc.plugin import (
LoadResourceDirsImpl, LoadResourceDirsImpl,
LoadTaggedUnionsImpl, LoadTaggedUnionsImpl,
@ -22,7 +23,7 @@ class HexcastingPlugin(LoadResourceDirsImpl, LoadTaggedUnionsImpl, ModVersionImp
@staticmethod @staticmethod
@hookimpl @hookimpl
def hexdoc_load_resource_dirs() -> Package | list[Package]: def hexdoc_load_resource_dirs() -> Package | list[Package]:
return [generated, resources] return [hexdoc._export.generated, hexdoc._export.resources]
@staticmethod @staticmethod
@hookimpl @hookimpl