Skip to content

Commit 5606949

Browse files
authored
Fix compilation under recent mypyc (#7)
1 parent 4f9602e commit 5606949

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
fetch-depth: 50
9595
submodules: true
9696

97-
- uses: pypa/cibuildwheel@v2.1.1
97+
- uses: pypa/cibuildwheel@v2.4.0
9898
env:
9999
CIBW_BUILD_VERBOSITY: 1
100100
CIBW_BUILD: ${{ matrix.cibw_python }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.7, 3.8, 3.9, 3.10.0-rc.1]
18+
python-version: ["3.7", "3.8", "3.9", "3.10"]
1919
build: ["mypyc", "pure-python"]
2020

2121
env:

parsing/automaton.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,18 @@ class Spec(interfaces.Spec):
280280
class needs in order to parse input. Parser generation results in a
281281
Spec instance, which can then be shared by multiple Parser instances."""
282282

283+
__deletable__ = [
284+
'_itemSets',
285+
'_itemSetsHash',
286+
'_nonterms',
287+
'_precedences',
288+
'_productions',
289+
'_startSym',
290+
'_startProd',
291+
'_startState',
292+
'_tokens',
293+
]
294+
283295
_sym2spec: dict[type[Symbol], SymbolSpec]
284296

285297
def sym_spec(self, sym: Symbol) -> SymbolSpec:

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[project]
2-
requires-python = ">=3.7"
3-
41
[build-system]
52
requires = ["setuptools>=42", "wheel"]
63
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)