Recognize with suppress the same as try except

Answered

New in Python 3.4 is a contextlib called suppress, pycharm currently complains about all the code below a "with suppress" statement as "This code is unreachable". Is this something that can be fixed in future versions? Thanks.

0
4 comments
Avatar
Permanently deleted user

Also just realized it shows all method params that are accessed after the with statement as not being used in the methods name.

0

Hi! Thank you for the report.
Could you please attach a screenshot that shows the issue? What Pycharm version do you use?

0
Avatar
Permanently deleted user

PyCharm 2016.3.2
Build #PY-163.10154.50, built on December 28, 2016
JRE: 1.8.0_112-release-408-b6 x86
JVM: OpenJDK Server VM by JetBrains s.r.o



0

Please sign in to leave a comment.