On Wed, Jul 29, 2020 at 07:23:07PM -0700, Stephen Satchell wrote: > I ran into the bug where a decorated function is not recognized as a > context-managed function. Because I'm on a rather tight deadline, I rewrote > the function as a context-managed class and got everything working. > > When researching the pylint report, I found that others found the same > problem. What wasn't apparent is whether a fix had been applied. Was this > successfully fixed after the bug was initially reported? > > CentOS 8.2 > pylint 2.4.4 > astroid 2.3.3 > Python 3.6.8 (default, Apr 16 2020, 01:36:27) > [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
Hard to say much without any details. What issue do you mean? What's your code? What error do you get exactly? Do you have a link to "the pylint report"? I don't remember ever having any issues, and I'm definitely using @contextlib.contextmanager. Florian -- m...@the-compiler.org (Mail/XMPP) | https://www.qutebrowser.org https://bruhin.software/ | https://github.com/sponsors/The-Compiler/ GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
signature.asc
Description: PGP signature
_______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-le...@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: arch...@mail-archive.com