[PyCharm] Jupyter (feat): "graphics.create() as Graphics2D"... replaced to short and proper useG2D. (fixed bug) #PY-81847 Ready For Merge

GitOrigin-RevId: 68cba3230796dd4506de8477f43735e4cd2948d9
This commit is contained in:
Nikita Pavlenko
2025-06-11 16:35:44 +00:00
committed by intellij-monorepo-bot
parent 53243d7b8f
commit 3390b0bc7c
@@ -24,7 +24,7 @@ inline fun Graphics.useG2D(handler: (Graphics2D) -> Unit) {
handler(g2d)
}
finally {
dispose()
g2d.dispose()
}
}