Skip to content

Commit 562cd2c

Browse files
chore(deps-dev): bump ty from 0.0.49 to 0.0.84 (#8498)
* chore(deps-dev): bump ty from 0.0.49 to 0.0.84 Bumps [ty](https://github.com/astral-sh/ty) from 0.0.49 to 0.0.84. - [Release notes](https://github.com/astral-sh/ty/releases) - [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md) - [Commits](astral-sh/ty@0.0.49...0.0.84) --- updated-dependencies: - dependency-name: ty dependency-version: 0.0.84 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix(typing): resolve diagnostics from ty 0.0.84 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Leandro Damascena <lcdama@amazon.pt>
1 parent aa27248 commit 562cd2c

4 files changed

Lines changed: 26 additions & 24 deletions

File tree

‎aws_lambda_powertools/utilities/feature_flags/feature_flags.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,5 +491,5 @@ def _lookup_exception_handler(self, exc: BaseException) -> Callable | None:
491491
# of an exception
492492
for cls in type(exc).__mro__:
493493
if cls in self._exception_handlers:
494-
return self._exception_handlers[cls] # type: ignore[index] # ty: ignore[invalid-argument-type]
494+
return self._exception_handlers[cls] # type: ignore[index]
495495
return None

‎aws_lambda_powertools/utilities/kafka/serialization/custom_dict.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
import logging
4-
from typing import TYPE_CHECKING, Any
4+
from typing import TYPE_CHECKING, Any, cast
55

66
from aws_lambda_powertools.utilities.kafka.serialization.base import OutputSerializerBase
77

@@ -23,4 +23,6 @@ class CustomDictOutputSerializer(OutputSerializerBase):
2323

2424
def serialize(self, data: dict[str, Any], output: type[T] | Callable | None = None) -> T | dict[str, Any]:
2525
logger.debug("Serializing output data with CustomDictOutputSerializer")
26-
return data if output is None else output(data) # type: ignore[call-arg]
26+
if output is None:
27+
return data
28+
return cast("Callable[[dict[str, Any]], T]", output)(data)

‎poetry.lock‎

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

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ mkdocs-llmstxt = ">=0.2,<0.5"
136136
avro = "^1.12.0"
137137
protobuf = ">=6.30.2,<8.0.0"
138138
types-protobuf = ">=6.30.2.20250516,<8.0.0.0"
139-
ty = ">=0.0.23,<0.0.50"
139+
ty = ">=0.0.23,<0.0.85"
140140

141141
[tool.coverage.run]
142142
source = ["aws_lambda_powertools"]

0 commit comments

Comments
 (0)