Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ twisted = ["Twisted", "fixtures"]
dev = [
"ruff==0.14.11",
"mypy>=1.0.0",
"typing-extensions;python_version<'3.11'",
]

[tool.hatch.version]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fixtures>=2.0
typing-extensions;python_version<'3.11'
11 changes: 6 additions & 5 deletions testtools/matchers/_higherorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@
import sys
import types
from collections.abc import Callable, Iterable
from typing import Any, Generic, TypedDict, TypeVar
from typing import TYPE_CHECKING, Any, Generic, TypedDict, TypeVar

if sys.version_info >= (3, 11):
from typing import Unpack
else:
from typing_extensions import Unpack
if TYPE_CHECKING:
if sys.version_info >= (3, 11):
from typing import Unpack
else:
from typing_extensions import Unpack

from ._impl import (
Matcher,
Expand Down