Comments (3)
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
mitar, is this still a problem? I cannot reproduce it with pylint 1.1, astroid 1.0.1, common 0.60.1.
from pylint.
Original comment by BitBucket: mitar, GitHub: @mitar?:
Oh. After more testing I discovered that I misattributed the problem. It seems I didn't read the lines correctly. The whole function is:
#!python
class DisplayComponent(components.FrontendComponent):
@classmethod
def get_urls(cls):
return super(DisplayComponent, cls).get_urls() + urls.patterns(
'',
urls.url(r'^node/(?P<pk>[^/]+)/$', views.DisplayNode.as_view(), name='node'),
)
And it fails at the views.DisplayNode.as_view()
call. The reason for this is, it seems, because as_view
is decorated with classonlymethod
and not classmethod
. See:
https://github.com/django/django/blob/master/django/utils/decorators.py#L8
https://github.com/django/django/blob/master/django/views/generic/base.py#L47
from pylint.
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore):
Solved in astroid with https://bitbucket.org/logilab/astroid/commits/30cd4b487741674c7cfc0a75b09ed693955cbbc1.
from pylint.
Related Issues (20)
- cell-var-from-loop false positive on lambda
- Pyreverse unable to detect relative imports HOT 4
- OpenCV vs Pylint - E0611:no-name-in-module - HOT 3
- Crash when using pylint for any file
- Undocumented `--colorized` option for pyreverse in 3.2.0-dev0 docs
- Using typeshed stubs instead of dependencies HOT 1
- `property-with-parameters` only cares about non-`self` parameters if they're positional-or-keyword parameters
- Cannot import 'rti.connextdds' due to 'invalid syntax (rti.connextdds, line 18332)' (syntax-error) HOT 2
- pylint crashes on mac HOT 5
- `undefined-variable` is not detected when import is used for more than type hinting HOT 1
- Pylint gets stuck on syntax errors, any way to get the whole report even if there is syntax errors? HOT 1
- Incorrect 'unsubscriptable-object' reported HOT 1
- Allow CheckerTestCase to assertDoesNotAddMessages() to check that a specific message has not been added HOT 2
- E0401 (import-error) checks perform repeated file reads HOT 1
- E0401 (import-error) checks perform many isinstance calls when searching for zipimporters
- R1707 (trailing-comma-tuple) checks perform excessive is_message_enabled calls HOT 3
- False-positive `import-error` for platform specific modules in platform check HOT 2
- False positive: Undefined variable '__annotations__' in class body HOT 1
- Which Messages output more than one line? HOT 2
- E0401 (import-error) checks perform repeated _has_init and stat calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.