Skip to content

Commit 7636e13

Browse files
drinkmorewaterrmeta-codesync[bot]
authored andcommitted
Unpin testslide from Python 3.10
Summary: Python 3.10 [is deprecated and is going away](https://fb.workplace.com/groups/pythonfoundation/permalink/4266597163653730/). Preemptive SEV: S615457 If this unpinning breaks your project, you **must** fix forward using Python 3.12+ If a forward fix is not immediately available, **and** this causes critical production issues, reach out via S615457. Forced-unpinning diffs will be landed during the week of Feb 2, 2026. Reviewed By: itamaro Differential Revision: D91986248 fbshipit-source-id: 7ef5d01717d945ae14cda86de148224a39001a9f
1 parent 62f0c9b commit 7636e13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testslide/core/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from functools import wraps
1515
from inspect import Traceback
1616
from types import FrameType
17-
from typing import Any, TYPE_CHECKING, Union
17+
from typing import Any, Self, TYPE_CHECKING, Union
1818
from unittest.mock import Mock
1919

2020
import typeguard
@@ -371,7 +371,7 @@ def _validate_return_type(
371371
expected_type = type_args[2]
372372

373373
try:
374-
if expected_type == typing_extensions.Self:
374+
if expected_type == Self:
375375
expected_type = template
376376
_validate_argument_type(expected_type, "return", value)
377377
except TypeCheckError as runtime_type_error:

0 commit comments

Comments
 (0)