Skip to content

Commit

Permalink
test: add typing_extensions dev requirement for 3.7 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Jun 1, 2021
1 parent 1d9665a commit 7417e1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from syrupy.utils import env_context

typing.TYPE_CHECKING = False
typing.TYPE_CHECKING = True
pytest_plugins = "pytester"


Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"pyperf",
"semver",
"twine",
"typing_extensions",
"wheel",
*test_requires,
]
Expand Down
2 changes: 1 addition & 1 deletion src/syrupy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
try:
# Python minimum version 3.8
# https://docs.python.org/3/library/typing.html#typing.Protocol
from typing import Protocol
from typing_extensions import Protocol

class PropertyMatcher(Protocol):
def __call__(
Expand Down

0 comments on commit 7417e1b

Please sign in to comment.