compat: fix version check to include 3.9

This commit is contained in:
Sean Breckenridge 2023-02-27 00:57:08 -08:00
parent 6074f04fe8
commit b242d94be9

View file

@ -129,7 +129,7 @@ else:
# bisect_left doesnt have a 'key' parameter (which we use)
# till python3.10
if sys.version_info[:2] < (3, 9):
if sys.version_info[:2] <= (3, 9):
from typing import List, TypeVar, Any, Optional, Callable
X = TypeVar('X')
# copied from python src