gabriel / muse public
fix task/fix-warnings-and-tests #2 / 2
gabriel · 63 days ago · Apr 14, 2026 · Diff

fix: suppress tree-sitter int-arg DeprecationWarning for scss grammar

tree_sitter_scss 1.0.0 (only available version) returns an int from language() — the old C-pointer API — while all other grammars return a PyCapsule. tree-sitter emits a DeprecationWarning when Language() is called with an int. Suppress it locally in _make_ts_adapter using warnings.catch_warnings so the warning does not surface in tests or user output. The int path still works; it is only deprecated.

sha256:ca9d0ced9904fcfe452d65cfcaa48b05a37b7e0f055989c910a7cea0fa39145c sha
sha256:e2ecf9fc92d1056ea1ca1274f3b6c1bf2b4c75cf511bd84552fc715884425633 snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ca9d0ced9904fcfe452d65cfcaa48b05a37b7e0f055989c910a7cea0fa39145c --body "your comment"