Get a new Size with just the height changed. Args: height: New height. Returns: New Size instance.
(self, height: int)
| 243 | return Size(width, self.height) |
| 244 | |
| 245 | def with_height(self, height: int) -> Size: |
| 246 | """Get a new Size with just the height changed. |
| 247 | |
| 248 | Args: |
| 249 | height: New height. |
| 250 | |
| 251 | Returns: |
| 252 | New Size instance. |
| 253 | """ |
| 254 | return Size(self.width, height) |
| 255 | |
| 256 | def __add__(self, other: object) -> Size: |
| 257 | if isinstance(other, tuple): |