Skip to content

Commit

Permalink
FIX Python 3.7, 3.8 Union support (#190)
Browse files Browse the repository at this point in the history
For #189
  • Loading branch information
thewtex authored Sep 21, 2023
1 parent 15ec072 commit 21309eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wasmtime/_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class Module:
@classmethod
def from_file(cls, engine: Engine, path: str | bytes | PathLike) -> "Module":
def from_file(cls, engine: Engine, path: typing.Union[str, bytes, PathLike]) -> "Module":
"""
Compiles and creates a new `Module` by reading the file at `path` and
then delegating to the `Module` constructor.
Expand Down

0 comments on commit 21309eb

Please sign in to comment.