Skip to content

Commit 58dbbd3

Browse files
committed
Add PYPY38 attribute
1 parent 67b118a commit 58dbbd3

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

domdf_python_tools/compat/__init__.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
.. autovariable:: domdf_python_tools.compat.PYPY37
2424
:no-value:
2525
26+
.. autovariable:: domdf_python_tools.compat.PYPY38
27+
:no-value:
28+
2629
.. raw:: latex
2730
2831
\end{multicols}
@@ -74,7 +77,15 @@
7477
# this package
7578
import domdf_python_tools
7679

77-
__all__ = ["importlib_resources", "importlib_metadata", "nullcontext", "PYPY", "PYPY36", "PYPY37"]
80+
__all__ = [
81+
"importlib_resources",
82+
"importlib_metadata",
83+
"nullcontext",
84+
"PYPY",
85+
"PYPY36",
86+
"PYPY37",
87+
"PYPY38",
88+
]
7889

7990
if sys.version_info[:2] < (3, 7) or domdf_python_tools.__docs or TYPE_CHECKING: # pragma: no cover (py37+)
8091

@@ -145,8 +156,17 @@ def __exit__(self, *excinfo):
145156
.. versionadded:: 2.6.0
146157
"""
147158

159+
PYPY38: bool = False
160+
"""
161+
:py:obj:`True` if running on PyPy 3.8.
162+
163+
.. versionadded:: 3.2.0
164+
"""
165+
148166
if PYPY: # pragma: no cover
149167
if sys.version_info[:2] == (3, 6):
150168
PYPY36 = True
151169
elif sys.version_info[:2] == (3, 7):
152170
PYPY37 = True
171+
elif sys.version_info[:2] == (3, 8):
172+
PYPY38 = True

0 commit comments

Comments
 (0)