... *args: Any) -> int: self.logger.info("method %r", args) # mypy error return 42 The decorator guarantees that the class has a logger attribute that can ...
確定! 回上一頁