Skip to content

Commit 975fcc5

Browse files
mbyrnepr2sprytnyk
andcommitted
Add continue-in-finally documentation examples based on the `pylint-errors project.
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
1 parent 7e1726f commit 975fcc5

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
while True:
2+
try:
3+
pass
4+
finally:
5+
continue # [continue-in-finally]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
while True:
2+
try:
3+
pass
4+
except ValueError:
5+
pass
6+
else:
7+
continue
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[testoptions]
2+
max_pyver=3.8

0 commit comments

Comments
 (0)