Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Aug 18, 2024
1 parent be080aa commit 3db6740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chalk/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def from_point(point: P2_t) -> Path:


def from_text(s: str) -> Path:
return Path((), Text(tx.np.array(list(s), dtype="U1")))
return Path((), Text(tx.np.frombuffer(s, dtype="<U3")))


def from_pairs(segs: List[Tuple[P2_t, P2_t]], closed: bool = False) -> Path:
Expand Down
3 changes: 2 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pyright
pyright
typeguard

0 comments on commit 3db6740

Please sign in to comment.