Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Oct 30, 2023
1 parent e6fa5bc commit 3a160b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
8 changes: 4 additions & 4 deletions bolt/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
cast,
)

from beet import BubbleException, Cache, DataPack, TextFile, TextFileBase
from beet import BubbleException, Cache, DataPack, ResourcePack, TextFile, TextFileBase
from beet.core.utils import JsonDict, extra_field, import_from_string, required_field
from mecha import (
AstCacheBackend,
Expand Down Expand Up @@ -152,9 +152,9 @@ class ModuleManager(Mapping[TextFileBase[Any], CompiledModule]):
)
globals: JsonDict = extra_field(default_factory=dict)
builtins: Set[str] = extra_field(default_factory=set)
prelude: Dict[str, Dict[Optional[DataPack], AstPrelude]] = extra_field(
default_factory=dict
)
prelude: Dict[
str, Dict[Optional[Union[ResourcePack, DataPack]], AstPrelude]
] = extra_field(default_factory=dict)

execution_count: int = 0

Expand Down
3 changes: 2 additions & 1 deletion bolt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
CommandTree,
CompilationDatabase,
Diagnostic,
FileTypeCompilationUnitProvider,
Mecha,
Visitor,
rule,
Expand Down Expand Up @@ -125,7 +126,7 @@ def __init__(self, ctx: Union[Context, Mecha]):

self.spec = mc.spec

mc.providers.append(Module)
mc.providers.append(FileTypeCompilationUnitProvider([Module], mc.directory))

commands_json = files("bolt.resources").joinpath("commands.json").read_text()
command_tree = CommandTree.parse_raw(commands_json)
Expand Down
16 changes: 8 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ include = ["bolt/py.typed"]

[tool.poetry.dependencies]
python = "^3.10"
beet = ">=0.96.1"
mecha = ">=0.79.0"
beet = ">=0.97.0"
mecha = ">=0.81.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.2"
Expand Down

0 comments on commit 3a160b1

Please sign in to comment.