You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: align Python translation with upstream prosemirror-model 1.18.1
Fixes translation issues up to 1.18.1, updates typing to use ty, and
fixes typos.
Bug fixes:
- find_diff_start crashed on text nodes of different lengths (used
zip(strict=True) instead of min-length loop)
- find_diff_start returned wrong result for position 0 (falsy check
instead of `is not None`)
- Slice.max_open had inverted `isolating` check, traversing into
isolating nodes when it shouldn't
Identity-vs-name comparison fixes (8 occurrences):
- content.py: match_type(), compatible(), find_wrapping() used string
name comparison instead of identity
- mark.py: eq() used name comparison instead of identity
- node.py: has_markup() used name comparison instead of identity
- schema.py: MarkType.excludes() used name comparison instead of
identity
Other translation fixes:
- mark.py: to_json() no longer includes empty attrs in output
- mark.py: remove_from_set() returns original set when mark not found
- mark.py: eq() uses `is` instead of `==` for self-check
- fragment.py: nodes_between uses direct content.size access
- fragment.py: child() raises proper bounds error message
- node.py: to_json() removed unnecessary deepcopy
- content.py: null_from sorted descending to match upstream
Typo fixes:
- content.py: "missing closing patren" -> "Missing closing paren"
- schema.py: "unknow mark type" -> "Unknown mark type"
Tooling:
- Replace mypy/pyright with ty for type checking
- Loosen dev dependency version constraints
- Remove dependabot.yml
- Update test expectations and README for mark serialization changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments