pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Is your feature request related to a problem? If you decorate a generator function with `@contextlib.contextmanager` and use the context manager `cm` inside a generator function, the context manager's...
Class attributes on `typing.NamedTuple`s don't seem to be picked up, so pylint thinks they're missing and throws a `no-member` error. Sounds related to #1628 which was about methods on them...if...
### Is your feature request related to a problem? Please describe For a module defined like: ``` FOO = 'abc' _BAR = 'xyz' ``` it would be great if pylint...
Since we're on Python 3, we can use annotations for pylint.
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- Would be useful to have some of these at least: 1. await accepts only an awaitable 2. type error if...
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- - can assign only tuples to `__bases__` ``` #!python class A: pass A.__bases__ = "lala" ``` - can assign only...
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- I see the following idiom a lot in some codebases: ```python s.splitlines(True) shutil.rmtree("something", True) my_particular_function(obj, False) ``` The following is...
Originally reported by: **BitBucket: [sandrotosi](http://bitbucket.org/sandrotosi), GitHub: @sandrotosi?** --- Hello, I'm forwarding http://www.logilab.org/ticket/62365 , https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613646 pylint.el defines the following key bindings C-c m l pylint C-c m n next-error C-c m...
### Current problem The representative code implements single dispatching with the ``@singledispatch`` and ``@staticmethod`` decorators in a class. ```python Class Board(): @singledispatch @staticmethod def convert_position(position): [...] @convert_position.register(str) @staticmethod def _(position:...
### Bug description A little background. The `str` justify methods (`rjust()`, `ljust()`, `center()`) take `SupportsIndex` types for `width` rather than just straight integers, allowing you to use custom types like...