Skip to content

Commit

Permalink
Update to support Python 3.11, Python 3.12, and Sympy 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
posita committed Aug 3, 2024
1 parent 790a067 commit 8863482
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 143 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.9", "3.10", "pypy-3.9"]
python-version: ["3.9", "3.10", "3.11", "3.12", "pypy-3.9", "pypy-3.10"]
steps:
- uses: actions/checkout@v2
with:
Expand Down
16 changes: 0 additions & 16 deletions .isort.cfg

This file was deleted.

8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: end-of-file-fixer
# See <https://docs.python.org/3/library/re.html#re.X>
Expand Down Expand Up @@ -38,14 +38,14 @@ repos:
- id: check-xml
- id: check-yaml
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
9 changes: 3 additions & 6 deletions dyce/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ def __call__(
*args: _POrPWithSelectionOrSourceT,
limit: Optional[LimitT] = None,
**kw: _POrPWithSelectionOrSourceT,
) -> H:
...
) -> H: ...


# ---- Data ----------------------------------------------------------------------------
Expand All @@ -109,17 +108,15 @@ def __call__(
def expandable(
*,
sentinel: H = _DEFAULT_SENTINEL,
) -> Callable[[_DependentTermT], _ForEachEvaluatorT]:
...
) -> Callable[[_DependentTermT], _ForEachEvaluatorT]: ...


@overload
def expandable(
f: _DependentTermT,
*,
sentinel: H = _DEFAULT_SENTINEL,
) -> _ForEachEvaluatorT:
...
) -> _ForEachEvaluatorT: ...


@experimental
Expand Down
Loading

0 comments on commit 8863482

Please sign in to comment.