Skip to content

Commit

Permalink
Merge pull request #233 from fellowapp/typing-2
Browse files Browse the repository at this point in the history
Add types for prosemirror.model
  • Loading branch information
sciyoshi authored Nov 16, 2023
2 parents 8b3c7e5 + b061e0e commit c87eb14
Show file tree
Hide file tree
Showing 33 changed files with 1,825 additions and 914 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- run: poetry install --no-interaction
- run: poetry run black --check prosemirror tests
- run: poetry run ruff prosemirror tests
- run: poetry run mypy prosemirror tests
- run: poetry run mypy prosemirror
59 changes: 30 additions & 29 deletions poetry.lock

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

5 changes: 4 additions & 1 deletion prosemirror/model/comparedeep.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
def compare_deep(a, b):
from prosemirror.utils import JSON


def compare_deep(a: JSON, b: JSON) -> bool:
return a == b
Loading

0 comments on commit c87eb14

Please sign in to comment.