Removed documentation of unused argument by radarhere · Pull Request #8079 · python-pillow/Pillow
| def getbbox(self, text, *args, **kwargs): | |
| """ | |
| Returns bounding box (in pixels) of given text. | |
| .. versionadded:: 9.2.0 | |
| :param text: Text to render. | |
| :param mode: Used by some graphics drivers to indicate what mode the | |
| driver prefers; if empty, the renderer may return either | |
| mode. Note that the mode is always a string, to simplify | |
| C-level implementations. | |
| :return: ``(left, top, right, bottom)`` bounding box | |
| """ | |
| _string_length_check(text) | |
| width, height = self.font.getsize(text) | |
| return 0, 0, width, height |