We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78208a commit dc4b276Copy full SHA for dc4b276
aws_lambda_powertools/logging/logger.py
@@ -684,7 +684,7 @@ def addHandler(self, handler: logging.Handler) -> None:
684
def registered_handler(self) -> logging.Handler:
685
"""Convenience property to access the first logger handler"""
686
# We ignore mypy here because self.child encodes whether or not self._logger.parent is
687
- # None or not, mypy can't see this from context
+ # None, mypy can't see this from context but we can
688
handlers = self._logger.parent.handlers if self.child else self._logger.handlers # type: ignore[union-attr]
689
return handlers[0]
690
0 commit comments