Skip to content

Commit 6de410e

Browse files
authored
Merge pull request #6 from Deric-W/python3.12
Python3.12
2 parents 9c2bf46 + 9dd176f commit 6de410e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/Tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
Test:
77
strategy:
88
matrix:
9-
python-version: ["3.10", "3.11"]
9+
python-version: ["3.10", "3.11", "3.12"]
1010
os: [ubuntu-latest]
1111

1212
runs-on: ${{ matrix.os }}

lambda_calculus/terms/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def alpha_conversion(self, new: V) -> Abstraction[V]:
280280
)
281281
raise CollisionError("new variable would bind free variable in body", (new,))
282282

283-
def eta_reduction(self) -> Term[V]: # type: ignore[return]
283+
def eta_reduction(self) -> Term[V]:
284284
"""
285285
Remove a useless abstraction.
286286
@@ -291,8 +291,6 @@ def eta_reduction(self) -> Term[V]: # type: ignore[return]
291291
case Application(f, Variable(x)) if x == self.bound and x not in f.free_variables():
292292
return f
293293
case _:
294-
# mypy detects missing returns
295-
# because of https://github.com/python/mypy/issues/12534
296294
raise ValueError("abstraction is not useless")
297295

298296
def accept(self, visitor: visitors.Visitor[T, V]) -> T:

0 commit comments

Comments
 (0)