Skip to content

Commit e275643

Browse files
chore(deps-dev): bump typeguard from 2.13.3 to 4.0.0 (#54)
* chore(deps-dev): bump typeguard from 2.13.3 to 4.0.0 Bumps [typeguard](https://github.com/agronholm/typeguard) from 2.13.3 to 4.0.0. - [Changelog](https://github.com/agronholm/typeguard/blob/master/docs/versionhistory.rst) - [Commits](agronholm/typeguard@2.13.3...4.0.0) --- updated-dependencies: - dependency-name: typeguard dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * tests: ignore runtime protocol warning from typeguard --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Knell <contact@danielknell.co.uk>
1 parent 19717c6 commit e275643

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed

poetry.lock

Lines changed: 45 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pylint = "^2.13.7"
2323
mypy = ">=0.942,<1.5"
2424
pytest = "^7.1.1"
2525
pytest-cov = ">=3,<5"
26-
typeguard = "^2.13.3"
26+
typeguard = ">=2.13.3,<5.0.0"
2727
docformatter = "^1.4"
2828
pytest-pylint = {git = "https://github.com/carsongee/pytest-pylint.git", rev = "804add7"}
2929
pytest-mypy = ">=0.9.1,<0.11.0"
@@ -82,7 +82,8 @@ testpaths = "tests"
8282
filterwarnings = [
8383
"error",
8484
"ignore::pytest.PytestRemovedIn8Warning",
85-
"ignore::DeprecationWarning:pylint.*"
85+
"ignore::DeprecationWarning:pylint.*",
86+
"ignore:Typeguard cannot check the Comparable protocol because it is a non-runtime protocol.:UserWarning:",
8687
]
8788

8889
[tool.pylint.parameter_documentation]

tests/unit/test_instance_of.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_should_match_value_type(
2828
)
2929
def test_should_not_match_different_types(
3030
value: typing.Union[str, int, float, bool, None],
31-
other: typing.Union[type[None], type[bool], type[float], type[int], type[str]],
31+
other: type,
3232
) -> None:
3333
"""
3434
instance_of() should not match different type.

0 commit comments

Comments
 (0)