Change-Id: Ib098754ef6d157e8dd1eac32b3cb114a9ca66e4a
from .compat import py310 as py310
from .compat import py311 as py311
from .compat import py312 as py312
+from .compat import py313 as py313
from .compat import py39 as py39
from .compat import pypy as pypy
from .compat import win32 as win32
from typing import Tuple
from typing import Type
+py313 = sys.version_info >= (3, 13)
py312 = sys.version_info >= (3, 12)
py311 = sys.version_info >= (3, 11)
py310 = sys.version_info >= (3, 10)
)
# This proves SA can handle a class with non-string dict keys
- if util.cpython:
+ # Since python 3.13 non-string key raise a runtime warning.
+ if util.cpython and not util.py313:
locals()[42] = 99 # Don't remove this line!
def __init__(self, **kwargs):