Skip to content

Commit 6a8de2e

Browse files
committed
Fix Tlz error in Python 3.11 (alpha)
1 parent f3ac821 commit 6a8de2e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: ["ubuntu-latest"]
15-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", "pypy-3.6", "pypy-3.7", "pypy-3.8"]
15+
python-version:
16+
- "3.5"
17+
- "3.6"
18+
- "3.7"
19+
- "3.8"
20+
- "3.9"
21+
- "3.10"
22+
- "3.11.0-alpha - 3.11.0"
23+
- "pypy-3.6"
24+
- "pypy-3.7"
25+
- "pypy-3.8"
26+
- "pypy-3.9"
1627
steps:
1728
- name: Checkout
1829
uses: actions/checkout@v2

tlz/_build_tlz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ def __init__(self, name, loader):
9696
self.cached = None
9797
self.parent = None
9898
self.has_location = False
99+
# Added in Python 3.11 (to improve circular imports or their errors?)
100+
self._uninitialized_submodules = []
99101

100102

101103
tlz_loader = TlzLoader()

0 commit comments

Comments
 (0)