Commit 5af6b8d
committed
Init FigureCanvasAgg._lastKey at class-level.
This avoids the need for getattr checks. We explicitly don't do the
same for FigureCanvasAgg.renderer because 1) if _lastKey has been set to
a non-None value, then renderer has also been set and 2) initing
renderer to e.g. None would change the possible types of a public
attribute.1 parent d73ba9e commit 5af6b8d
1 file changed
+3
-2
lines changed| 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