Files
Marcus Mewsandintellij-monorepo-bot 8637e79bf7 PY-76572 Extract method with typehints
- refactor platform expand-all folding action
- introduce platform folding attribute 'keepExpandedOnFirstCollapseAll'
- use 'keepExpandedOnFirstCollapseAll' for Python type annotation regions
- add tests for new PyCharm two-step collapse action
- add tests for legacy PyCharm two-step expand action

GitOrigin-RevId: ad0931b1b64d2ce6dfee52086193f17234fa537e
2025-08-06 14:39:32 +00:00

14 lines
409 B
Python

pyt = (<fold text='...'>(x, y, z) for z in b
for y in xrange(1, z)
for x in range(1, y) if x * x + y * y == z * z</fold>)
primes = {<fold text='...'>x for x in range(2, 101)
if all(x % y for y in range(2, min(x, 11)))</fold>}
d = {<fold text='...'>n: n ** 2
for n in range(5)</fold>}
def normal_foldable_element_to_ensure_two_step_folding() :<fold text='...'>
pass</fold>