Skip to content

Commit dc4b276

Browse files
Reword comment to read nicer
1 parent a78208a commit dc4b276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_lambda_powertools/logging/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def addHandler(self, handler: logging.Handler) -> None:
684684
def registered_handler(self) -> logging.Handler:
685685
"""Convenience property to access the first logger handler"""
686686
# 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
687+
# None, mypy can't see this from context but we can
688688
handlers = self._logger.parent.handlers if self.child else self._logger.handlers # type: ignore[union-attr]
689689
return handlers[0]
690690

0 commit comments

Comments
 (0)