Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- uses: dawidd6/action-download-artifact@v2
- uses: dawidd6/action-download-artifact@v7
with:
workflow: main.yml
name: docs
path: pages/docs
- uses: dawidd6/action-download-artifact@v2
- uses: dawidd6/action-download-artifact@v7
with:
workflow: main.yml
name: htmlcov
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
1 change: 1 addition & 0 deletions jsonurl_data_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Run tests from https://github.com/cdleonard/jsonurl-test-data
"""

import json
from pathlib import Path

Expand Down
12 changes: 4 additions & 8 deletions jsonurl_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ def _dump_any(arg: Any, opts: DumpOpts) -> str:


@overload
def dumps(arg: Any, opts: Optional[DumpOpts] = None) -> str:
...
def dumps(arg: Any, opts: Optional[DumpOpts] = None) -> str: ...


@overload
Expand All @@ -161,8 +160,7 @@ def dumps(
aqf: bool = False,
safe: str = "",
distinguish_empty_list_dict: bool = False,
) -> str:
...
) -> str: ...


def dumps(arg: Any, opts=None, **kw) -> str:
Expand Down Expand Up @@ -523,8 +521,7 @@ def _load_dict_data(arg: str, pos: int, opts: LoadOpts) -> dict:


@overload
def loads(arg: str, opts: Optional[LoadOpts] = None) -> Any:
...
def loads(arg: str, opts: Optional[LoadOpts] = None) -> Any: ...


@overload
Expand All @@ -535,8 +532,7 @@ def loads(
implied_list: bool = False,
aqf: bool = False,
distinguish_empty_list_dict: bool = False,
) -> Any:
...
) -> Any: ...


def loads(arg: str, opts=None, **kw) -> Any:
Expand Down
Loading