Skip to content

Commit

Permalink
[fix] only support 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Oct 29, 2023
1 parent 1eb4bf2 commit 25cc714
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.6", "3.7", "pypy3.6", "pypy3.7"]
python-version: ["3.7", "pypy3.7"]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Parse partial JSON generated by LLM"
authors = [{ name = "Muspi Merol", email = "me@promplate.dev" }]
dependencies = []
optional-dependencies = { playground = ["rich"] }
requires-python = ">=3.6"
requires-python = ">=3.7"
readme = "README.md"
license = { text = "MIT" }
scripts = { json-playground = "partial_json_parser.playground:main" }
Expand Down
2 changes: 1 addition & 1 deletion src/partial_json_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
JSON = Union[str, bool, Number, List["JSON"], Dict[str, "JSON"], None]


def parse_json(json_string: str, allow_partial: Union[Allow, int] = ALL, /) -> JSON:
def parse_json(json_string: str, allow_partial: Union[Allow, int] = ALL) -> JSON:
if not isinstance(json_string, str):
raise TypeError(f"expecting str, got {type(json_string).__name__}")
if not json_string.strip():
Expand Down

0 comments on commit 25cc714

Please sign in to comment.