Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commit5af6b8d
committed
Init FigureCanvasAgg._lastKey at class-level.
This avoids the need for getattr checks. We explicitly don't do thesame for FigureCanvasAgg.renderer because 1) if _lastKey has been set toa non-None value, then renderer has also been set and 2) initingrenderer to e.g. None would change the possible types of a publicattribute.1 parentd73ba9e commit5af6b8d
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
| 390 | + | |
| 391 | + | |
390 | 392 |
| |
391 | 393 |
| |
392 | 394 |
| |
| |||
412 | 414 |
| |
413 | 415 |
| |
414 | 416 |
| |
415 |
| - | |
416 |
| - | |
| 417 | + | |
417 | 418 |
| |
418 | 419 |
| |
419 | 420 |
| |
|
0 commit comments
Comments
(0)